From 08e3a6a9841e958e026403dce15f7f0dbc73e414 Mon Sep 17 00:00:00 2001 From: liuwenhui_ddmp Date: Mon, 30 May 2022 09:02:47 +0800 Subject: [PATCH] add context param if getKVStore Signed-off-by: liuwenhui_ddmp --- api/@ohos.data.distributedData.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/@ohos.data.distributedData.d.ts b/api/@ohos.data.distributedData.d.ts index cce2ade79d..69ae0b0358 100644 --- a/api/@ohos.data.distributedData.d.ts +++ b/api/@ohos.data.distributedData.d.ts @@ -17,6 +17,7 @@ import { AsyncCallback, Callback } from './basic'; import ValuesBucket from './@ohos.data.DatashareValuesBucket'; import Predicates from './@ohos.data.DatasharePredicates'; import DataShareResultSet from './@ohos.data.DataShareResultSet'; +import Context from './application/Context'; /** * Providers interfaces to creat a {@link KVManager} istances. @@ -49,6 +50,16 @@ declare namespace distributedData { * @import N/A */ bundleName: string; + + /** + * Indicates the ability or hap context + * @since 9 + * @syscap SystemCapability.DistributedDataManager.KVStore.Core + * @import N/A + * @Note: if swap the area, you should close all the KV store and use the new Context to create the KVManager + * @StageModelOnly + */ + context: Context; } /** -- Gitee