diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-ability.md b/zh-cn/application-dev/reference/apis/js-apis-data-ability.md index 092944e909aa18218a2c6d0e040a560ebabd627f..bd4c9f3b8282c1e912c29608225ad7e34e34a9b0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-ability.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-ability.md @@ -19,9 +19,10 @@ createRdbPredicates(name: string, dataAbilityPredicates: DataAbilityPredicates): 从DataAabilityPredicates对象创建RdbPredicates对象。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** + | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | name | string | 是 | 数据库表中的表名。 | @@ -53,7 +54,7 @@ equalTo(field: string, value: ValueType): DataAbilityPredicates 配置谓词以匹配数据类型为ValueType且值等于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -81,7 +82,7 @@ notEqualTo(field: string, value: ValueType): DataAbilityPredicates 配置谓词以匹配数据类型为ValueType且值不等于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -109,7 +110,7 @@ beginWrap(): DataAbilityPredicates 向谓词添加左括号。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **返回值:** | 类型 | 说明 | @@ -136,7 +137,7 @@ endWrap(): DataAbilityPredicates 向谓词添加右括号。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **返回值:** | 类型 | 说明 | @@ -163,7 +164,7 @@ or(): DataAbilityPredicates 将或条件添加到谓词中。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **返回值:** | 类型 | 说明 | @@ -187,7 +188,7 @@ and(): DataAbilityPredicates 将和条件添加到谓词中。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **返回值:** | 类型 | 说明 | @@ -211,7 +212,7 @@ contains(field: string, value: string): DataAbilityPredicates 配置谓词以匹配数据类型为string且value包含指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -239,7 +240,7 @@ beginsWith(field: string, value: string): DataAbilityPredicates 配置谓词以匹配数据类型为string且值以指定字符串开头的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -267,7 +268,7 @@ endsWith(field: string, value: string): DataAbilityPredicates 配置谓词以匹配数据类型为string且值以指定字符串结尾的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -295,7 +296,7 @@ isNull(field: string): DataAbilityPredicates 配置谓词以匹配值为null的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -322,7 +323,7 @@ isNotNull(field: string): DataAbilityPredicates 配置谓词以匹配值不为null的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -349,7 +350,7 @@ like(field: string, value: string): DataAbilityPredicates 配置谓词以匹配数据类型为string且值类似于指定字符串的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -377,7 +378,7 @@ glob(field: string, value: string): DataAbilityPredicates 配置谓词以匹配数据类型为string的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -405,7 +406,7 @@ between(field: string, low: ValueType, high: ValueType): DataAbilityPredicates 配置谓词以匹配数据类型为ValueType且value在指定范围内的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -434,7 +435,7 @@ notBetween(field: string, low: ValueType, high: ValueType): DataAbilityPredicate 配置谓词以匹配数据类型为ValueType且value超出给定范围的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -463,7 +464,7 @@ greaterThan(field: string, value: ValueType): DataAbilityPredicates 配置谓词以匹配数据类型为ValueType且值大于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -491,7 +492,7 @@ lessThan(field: string, value: ValueType): DataAbilityPredicates 配置谓词以匹配数据类型为valueType且value小于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -519,7 +520,7 @@ greaterThanOrEqualTo(field: string, value: ValueType): DataAbilityPredicates 配置谓词以匹配数据类型为ValueType且value大于或等于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -547,7 +548,7 @@ lessThanOrEqualTo(field: string, value: ValueType): DataAbilityPredicates 配置谓词以匹配数据类型为ValueType且value小于或等于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -575,7 +576,7 @@ orderByAsc(field: string): DataAbilityPredicates 配置谓词以匹配其值按升序排序的列。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -602,7 +603,7 @@ orderByDesc(field: string): DataAbilityPredicates 配置谓词以匹配其值按降序排序的列。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -629,7 +630,7 @@ distinct(): DataAbilityPredicates 配置谓词以过滤重复记录并仅保留其中一个。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **返回值:** | 类型 | 说明 | @@ -657,7 +658,7 @@ limitAs(value: number): DataAbilityPredicates 设置最大数据记录数的谓词。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -684,7 +685,7 @@ offsetAs(rowOffset: number): DataAbilityPredicates 配置谓词以指定返回结果的起始位置。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -711,7 +712,7 @@ groupBy(fields: Array<string>): DataAbilityPredicates 配置谓词按指定列分组查询结果。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -763,7 +764,7 @@ in(field: string, value: Array<ValueType>): DataAbilityPredicates 配置谓词以匹配数据类型为ValueType数组且值在给定范围内的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -792,7 +793,7 @@ notIn(field: string, value: Array<ValueType>): DataAbilityPredicates 配置谓词以匹配数据类型为ValueType数组且值不在给定范围内的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -816,7 +817,7 @@ notIn(field: string, value: Array<ValueType>): DataAbilityPredicates 用于表示允许的数据字段类型。 -**系统能力:**SystemCapability.DistributedDataManager.DataShare.Core。 +**系统能力:** SystemCapability.DistributedDataManager.DataShare.Core。 | 名称 | 说明 | | ------- | -------------------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md b/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md index 5b8c79f0b875438a8c911ddcbb36d88250616e76..f1979534ebd3b563660ce67508d0148af49c506b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-distributedobject.md @@ -17,7 +17,7 @@ createDistributedObject(source: object): DistributedObject 创建一个分布式对象。 -**系统能力:**SystemCapability.DistributedDataManager.DataObject.DistributedObject。 +**系统能力:** SystemCapability.DistributedDataManager.DataObject.DistributedObject。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -44,7 +44,7 @@ genSessionId(): string 随机创建一个sessionId。 -**系统能力:**SystemCapability.DistributedDataManager.DataObject.DistributedObject。 +**系统能力:** SystemCapability.DistributedDataManager.DataObject.DistributedObject。 **返回值:** | 类型 | 说明 | @@ -68,7 +68,7 @@ setSessionId(sessionId?: string): boolean 设置同步的sessionId,当可信组网中有多个设备时,多个设备间的对象如果设置为同一个sessionId,就能自动同步。 -**系统能力:**SystemCapability.DistributedDataManager.DataObject.DistributedObject。 +**系统能力:** SystemCapability.DistributedDataManager.DataObject.DistributedObject。 **参数:** @@ -101,7 +101,7 @@ on(type: 'change', callback: Callback<{ sessionId: string, fields: Array<stri 监听分布式对象的变更。 -**系统能力:**SystemCapability.DistributedDataManager.DataObject.DistributedObject。 +**系统能力:** SystemCapability.DistributedDataManager.DataObject.DistributedObject。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -130,7 +130,7 @@ off(type: 'change', callback?: Callback<{ sessionId: string, fields: Array<st 当不再进行数据变更监听时,使用此接口删除对象的变更监听。 -**系统能力:**SystemCapability.DistributedDataManager.DataObject.DistributedObject。 +**系统能力:** SystemCapability.DistributedDataManager.DataObject.DistributedObject。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -161,7 +161,7 @@ on(type: 'status', callback: Callback<{ sessionId: string, networkId: string, st 监听分布式对象的上下线。 -**系统能力:**SystemCapability.DistributedDataManager.DataObject.DistributedObject。 +**系统能力:** SystemCapability.DistributedDataManager.DataObject.DistributedObject。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -186,7 +186,7 @@ off(type: 'status', callback?: Callback<{ sessionId: string, deviceId: string, s 当不再进行对象上下线监听时,使用此接口删除对象的上下线监听。 -**系统能力:**SystemCapability.DistributedDataManager.DataObject.DistributedObject。 +**系统能力:** SystemCapability.DistributedDataManager.DataObject.DistributedObject。 **参数:** | 参数名 | 类型 | 必填 | 说明 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md b/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md index ba55dbf915b71b4f70f12d0ff73e86e361a91dce..e94468b462bb443d19768d720bfb94d79e90560c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md @@ -15,7 +15,7 @@ getRdbStore(config: StoreConfig, version: number, callback: AsyncCallback<Rdb 获得一个相关的RdbStore,操作关系型数据库,用户可以根据自己的需求配置RdbStore的参数,然后通过RdbStore调用相关接口可以执行相关的数据操作,结果以callback形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: @@ -42,7 +42,7 @@ getRdbStore(config: StoreConfig, version: number): Promise<RdbStore> 获得一个相关的RdbStore,操作关系型数据库,用户可以根据自己的需求配置RdbStore的参数,然后通过RdbStore调用相关接口可以执行相关的数据操作,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: @@ -82,7 +82,7 @@ getRdbStore(context: Context, config: StoreConfig, version: number, callback: As 获得一个相关的RdbStore,操作关系型数据库,用户可以根据自己的需求配置RdbStore的参数,然后通过RdbStore调用相关接口可以执行相关的数据操作,结果以callback形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: @@ -111,7 +111,7 @@ getRdbStore(context: Context, config: StoreConfig, version: number): Promise< 获得一个相关的RdbStore,操作关系型数据库,用户可以根据自己的需求配置RdbStore的参数,然后通过RdbStore调用相关接口可以执行相关的数据操作,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: @@ -151,7 +151,7 @@ deleteRdbStore(name: string, callback: AsyncCallback<void>): void 删除数据库,结果以callback形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -171,7 +171,7 @@ deleteRdbStore(name: string): Promise<void> 使用指定的数据库文件配置删除数据库,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数** | 参数名 | 类型 | 必填 | 说明 | @@ -199,7 +199,7 @@ deleteRdbStore(context: Context, name: string, callback: AsyncCallback<void&g 删除数据库,结果以callback形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -221,7 +221,7 @@ deleteRdbStore(context: Context, name: string): Promise<void> 使用指定的数据库文件配置删除数据库,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数** | 参数名 | 类型 | 必填 | 说明 | @@ -257,7 +257,7 @@ constructor(name: string) 构造函数。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -276,7 +276,7 @@ inDevices(devices: Array<string>): RdbPredicates 同步分布式数据库时指定组网内的远程设备。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -301,7 +301,7 @@ inAllDevices(): RdbPredicates 同步分布式数据库时连接到组网内的所有远程设备。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **返回值**: | 类型 | 说明 | @@ -321,7 +321,7 @@ equalTo(field: string, value: ValueType): RdbPredicates 配置谓词以匹配数据字段为ValueType且值等于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -348,7 +348,7 @@ notEqualTo(field: string, value: ValueType): RdbPredicates 配置谓词以匹配数据字段为ValueType且值不等于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -375,7 +375,7 @@ beginWrap(): RdbPredicates 向谓词添加左括号。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **返回值**: | 类型 | 说明 | @@ -401,7 +401,7 @@ endWrap(): RdbPredicates 向谓词添加右括号。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **返回值**: | 类型 | 说明 | @@ -427,7 +427,7 @@ or(): RdbPredicates 将或条件添加到谓词中。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **返回值**: | 类型 | 说明 | @@ -450,7 +450,7 @@ and(): RdbPredicates 向谓词添加和条件。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **返回值**: | 类型 | 说明 | @@ -472,7 +472,7 @@ contains(field: string, value: string): RdbPredicates 配置谓词以匹配数据字段为string且value包含指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -499,7 +499,7 @@ beginsWith(field: string, value: string): RdbPredicates 配置谓词以匹配数据字段为string且值以指定字符串开头的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -526,7 +526,7 @@ endsWith(field: string, value: string): RdbPredicates 配置谓词以匹配数据字段为string且值以指定字符串结尾的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -553,7 +553,7 @@ isNull(field: string): RdbPredicates 配置谓词以匹配值为null的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -579,7 +579,7 @@ isNotNull(field: string): RdbPredicates 配置谓词以匹配值不为null的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -605,7 +605,7 @@ like(field: string, value: string): RdbPredicates 配置谓词以匹配数据字段为string且值类似于指定字符串的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -632,7 +632,7 @@ glob(field: string, value: string): RdbPredicates 配置RdbPredicates匹配数据字段为string的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -659,7 +659,7 @@ between(field: string, low: ValueType, high: ValueType): RdbPredicates 将谓词配置为匹配数据字段为ValueType且value在给定范围内的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -687,7 +687,7 @@ notBetween(field: string, low: ValueType, high: ValueType): RdbPredicates 配置RdbPredicates以匹配数据字段为ValueType且value超出给定范围的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -714,7 +714,7 @@ greaterThan(field: string, value: ValueType): RdbPredicates 配置谓词以匹配数据字段为ValueType且值大于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -741,7 +741,7 @@ lessThan(field: string, value: ValueType): RdbPredicates 配置谓词以匹配数据字段为valueType且value小于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -769,7 +769,7 @@ greaterThanOrEqualTo(field: string, value: ValueType): RdbPredicates 配置谓词以匹配数据字段为ValueType且value大于或等于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -797,7 +797,7 @@ lessThanOrEqualTo(field: string, value: ValueType): RdbPredicates 配置谓词以匹配数据字段为ValueType且value小于或等于指定值的字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -825,7 +825,7 @@ orderByAsc(field: string): RdbPredicates 配置谓词以匹配其值按升序排序的列。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -852,7 +852,7 @@ orderByDesc(field: string): RdbPredicates 配置谓词以匹配其值按降序排序的列。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -878,7 +878,7 @@ distinct(): RdbPredicates 配置谓词以过滤重复记录并仅保留其中一个。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **返回值**: | 类型 | 说明 | @@ -906,7 +906,7 @@ limitAs(value: number): RdbPredicates 设置最大数据记录数的谓词。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -932,7 +932,7 @@ offsetAs(rowOffset: number): RdbPredicates 配置RdbPredicates以指定返回结果的起始位置。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -958,7 +958,7 @@ groupBy(fields: Array<string>): RdbPredicates 配置RdbPredicates按指定列分组查询结果。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -983,7 +983,7 @@ indexedBy(field: string): RdbPredicates 配置RdbPredicates以指定索引列。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1010,7 +1010,7 @@ in(field: string, value: Array<ValueType>): RdbPredicates 配置RdbPredicates以匹配数据字段为ValueType数组且值在给定范围内的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1038,7 +1038,7 @@ notIn(field: string, value: Array<ValueType>): RdbPredicates 将RdbPredicates配置为匹配数据字段为ValueType且值超出给定范围的指定字段。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1070,7 +1070,7 @@ insert(name: string, values: ValuesBucket, callback: AsyncCallback<number> 向目标表中插入一行数据,结果以callback形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1099,7 +1099,7 @@ insert(name: string, values: ValuesBucket):Promise<number> 向目标表中插入一行数据,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1135,7 +1135,7 @@ update(values: ValuesBucket, rdbPredicates: RdbPredicates, callback: AsyncCallba 根据RdbPredicates的指定实例对象更新数据库中的数据,结果以callback形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1165,7 +1165,7 @@ update(values: ValuesBucket, rdbPredicates: RdbPredicates):Promise<number> 根据RdbPredicates的指定实例对象更新数据库中的数据,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1204,7 +1204,7 @@ delete(rdbPredicates: RdbPredicates, callback: AsyncCallback<number>):void 根据rdbPredicates的指定实例对象从数据库中删除数据,结果以callback形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1228,7 +1228,7 @@ delete(rdbPredicates: RdbPredicates):Promise<number> 根据rdbPredicates的指定实例对象从数据库中删除数据,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1259,7 +1259,7 @@ query(rdbPredicates: RdbPredicates, columns: Array<string>, callback: Asyn 根据指定条件查询数据库中的数据,结果以callback形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1285,7 +1285,7 @@ query(rdbPredicates: RdbPredicates, columns?: Array<string>):Promise<Re 根据指定条件查询数据库中的数据,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1318,7 +1318,7 @@ querySql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallback& 根据指定SQL语句查询数据库中的数据,结果以callback形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1342,7 +1342,7 @@ querySql(sql: string, bindArgs?: Array<ValueType>):Promise<ResultSet> 根据指定SQL语句查询数据库中的数据,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1373,7 +1373,7 @@ executeSql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallbac 执行包含指定参数但不返回值的SQL语句,结果以callbck形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1396,7 +1396,7 @@ executeSql(sql: string, bindArgs?: Array<ValueType>):Promise<void> 执行包含指定参数但不返回值的SQL语句,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1425,7 +1425,7 @@ beginTransaction():void 在开始执行SQL语句之前,开始事务。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **示例**: ```js @@ -1449,7 +1449,7 @@ commit():void 提交已执行的SQL语句。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **示例**: ```js @@ -1474,7 +1474,7 @@ rollBack():void; 回滚已经执行的SQL语句。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **示例**: ```js @@ -1503,7 +1503,7 @@ setDistributedTables(tables: Array<string>, callback: AsyncCallback<voi 设置分布式列表,结果以callbck形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1529,7 +1529,7 @@ setDistributedTables(tables: Array<string>, callback: AsyncCallback<voi 设置分布式列表,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1557,7 +1557,7 @@ obtainDistributedTableName(device: string, table: string, callback: AsyncCallbac 根据本地表名获取指定远程设备的分布式表名。在查询远程设备数据库时,需要使用分布式表名, 结果以callbck形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1584,7 +1584,7 @@ obtainDistributedTableName(device: string, table: string, callback: AsyncCallbac 根据本地表名获取指定远程设备的分布式表名。在查询远程设备数据库时,需要使用分布式表名,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1613,7 +1613,7 @@ sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback<Array 在设备之间同步数据, 结果以callbck形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1645,7 +1645,7 @@ sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback<Array 在设备之间同步数据,结果以Promise形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: | 参数名 | 类型 | 必填 | 说明 | @@ -1680,7 +1680,7 @@ on(event: 'dataChange', type: SubscribeType, observer: Callback<Array<stri 注册数据库的观察者。当分布式数据库中的数据发生更改时,将调用回调。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: @@ -1710,7 +1710,7 @@ off(event:'dataChange', type: SubscribeType, observer: Callback<Array<stri 从数据库中删除指定类型的指定观察者, 结果以callbck形式返回。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数**: @@ -1739,7 +1739,7 @@ off(event:'dataChange', type: SubscribeType, observer: Callback<Array<stri 管理关系数据库配置。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | @@ -1750,7 +1750,7 @@ off(event:'dataChange', type: SubscribeType, observer: Callback<Array<stri 用于表示允许的数据字段类型。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 | 名称 | 说明 | | -------- | -------- | @@ -1763,7 +1763,7 @@ off(event:'dataChange', type: SubscribeType, observer: Callback<Array<stri 用于存储键值对。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 | 名称 | 参数类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | @@ -1774,7 +1774,7 @@ off(event:'dataChange', type: SubscribeType, observer: Callback<Array<stri 指数据库同步模式。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 | 名称 | 默认值 | 说明 | | -------- | ----- |----- | @@ -1785,7 +1785,7 @@ off(event:'dataChange', type: SubscribeType, observer: Callback<Array<stri 描述订阅类型。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 | 名称 | 默认值 | 说明 | | -------- | ----- |---- | 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 7317dd1ac1580c335841b33fec657b921e4ff112..06ec113201daf460a291115807a8200db1ee114e 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 @@ -25,7 +25,7 @@ promise.then((resultSet) => { ### 属性 -**系统能力:**以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.DistributedDataManager.RelationalStore.Core。 | 名称 | 参数类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | @@ -46,7 +46,7 @@ getColumnIndex(columnName: string): number 根据指定的列名获取列索引。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -74,7 +74,7 @@ getColumnName(columnIndex: number): string 根据指定的列索引获取列名。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -100,7 +100,7 @@ goTo(offset:number): boolean 向前或向后转至结果集的指定行,相对于其当前位置偏移。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -131,7 +131,7 @@ goToRow(position: number): boolean 转到结果集的指定行。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -163,7 +163,7 @@ goToFirstRow(): boolean 转到结果集的第一行。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **返回值:** | 类型 | 说明 | @@ -189,7 +189,7 @@ goToLastRow(): boolean 转到结果集的最后一行。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **返回值:** | 类型 | 说明 | @@ -215,7 +215,7 @@ goToNextRow(): boolean 转到结果集的下一行。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **返回值:** | 类型 | 说明 | @@ -241,7 +241,7 @@ goToPreviousRow(): boolean 转到结果集的上一行。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **返回值:** | 类型 | 说明 | @@ -267,7 +267,7 @@ getBlob(columnIndex: number): Uint8Array 以字节数组的形式获取当前行中指定列的值。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -291,7 +291,7 @@ getString(columnIndex: number): string 以字符串形式获取当前行中指定列的值。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -315,7 +315,7 @@ getLong(columnIndex: number): number 以Long形式获取当前行中指定列的值。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -339,7 +339,7 @@ getDouble(columnIndex: number): number 以double形式获取当前行中指定列的值。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -363,7 +363,7 @@ isColumnNull(columnIndex: number): boolean 检查当前行中指定列的值是否为null。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -387,7 +387,7 @@ close(): void 关闭结果集。 -**系统能力:**SystemCapability.DistributedDataManager.RelationalStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core。 **示例:** ```js diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-storage.md b/zh-cn/application-dev/reference/apis/js-apis-data-storage.md index a28cf466d0d025aa0ae412e04bdda13868ac8e8a..ecadcebf5ed5050a3a0d5d12e314813822b2c25d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-storage.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-storage.md @@ -3,7 +3,7 @@ 轻量级存储为应用提供key-value键值型的文件数据处理能力,支持应用对数据进行轻量级存储及查询。数据存储形式为键值对,键的类型为字符串型,值的存储数据类型包括数字型、字符型、布尔型。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:** > > - 本模块首批接口从API version 6开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > @@ -18,7 +18,7 @@ import dataStorage from '@ohos.data.storage'; ## 常量 -**系统能力:**以下各项对应的系统能力均为SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** 以下各项对应的系统能力均为SystemCapability.DistributedDataManager.Preferences.Core | 名称 | 参数类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | @@ -32,7 +32,7 @@ getStorageSync(path: string): Storage 读取指定文件,将数据加载到Storage实例,用于数据操作。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -69,7 +69,7 @@ getStorage(path: string, callback: AsyncCallback<Storage>): void 读取指定文件,将数据加载到Storage实例,用于数据操作,使用callback方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -107,7 +107,7 @@ getStorage(path: string): Promise<Storage> 读取指定文件,将数据加载到Storage实例,用于数据操作,使用Promise方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -148,7 +148,7 @@ deleteStorageSync(path: string): void 从内存中移除指定文件对应的Storage单实例,并删除指定文件及其备份文件、损坏文件。删除指定文件时,应用不允许再使用该实例进行数据操作,否则会出现数据一致性问题。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -167,7 +167,7 @@ deleteStorage(path: string, callback: AsyncCallback<void>): void 从内存中移除指定文件对应的Storage单实例,并删除指定文件及其备份文件、损坏文件。删除指定文件时,应用不允许再使用该实例进行数据操作,否则会出现数据一致性问题,使用callback方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -193,7 +193,7 @@ deleteStorage(path: string): Promise<void> 从内存中移除指定文件对应的Storage单实例,并删除指定文件及其备份文件、损坏文件。删除指定文件时,应用不允许再使用该实例进行数据操作,否则会出现数据一致性问题,使用promise方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -222,7 +222,7 @@ removeStorageFromCacheSync(path: string): void 从内存中移除指定文件对应的Storage单实例。移除Storage单实例时,应用不允许再使用该实例进行数据操作,否则会出现数据一致性问题。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -241,7 +241,7 @@ removeStorageFromCache(path: string, callback: AsyncCallback<void>): void 从内存中移除指定文件对应的Storage单实例。移除Storage单实例时,应用不允许再使用该实例进行数据操作,否则会出现数据一致性问题。使用callback方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -267,7 +267,7 @@ removeStorageFromCache(path: string): Promise<void> 从内存中移除指定文件对应的Storage单实例。移除Storage单实例时,应用不允许再使用该实例进行数据操作,否则会出现数据一致性问题。使用Promise方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -301,7 +301,7 @@ getSync(key: string, defValue: ValueType): ValueType 获取键对应的值,如果值为null或者非默认值类型,返回默认数据。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -327,7 +327,7 @@ get(key: string, defValue: ValueType, callback: AsyncCallback<ValueType>): 获取键对应的值,如果值为null或者非默认值类型,返回默认数据。使用callback方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -354,7 +354,7 @@ get(key: string, defValue: ValueType): Promise<ValueType> 获取键对应的值,如果值为null或者非默认值类型,返默认数据。使用Promise方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** @@ -385,7 +385,7 @@ putSync(key: string, value: ValueType): void 首先获取指定文件对应的Storage实例,然后借助Storage API将数据写入Storage实例,通过flush或者flushSync将Storage实例持久化。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -405,7 +405,7 @@ put(key: string, value: ValueType, callback: AsyncCallback<void>): void 首先获取指定文件对应的Storage实例,然后借助Storage API将数据写入Storage实例,通过flush或者flushSync将Storage实例持久化。使用callback方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -432,7 +432,7 @@ put(key: string, value: ValueType): Promise<void> 首先获取指定文件对应的Storage实例,然后借助Storage API将数据写入Storage实例,通过flush或者flushSync将Storage实例持久化。使用Promise方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -462,7 +462,7 @@ hasSync(key: string): boolean 检查存储对象是否包含名为给定key的存储。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -489,7 +489,7 @@ has(key: string, callback: AsyncCallback<boolean>): boolean 检查存储对象是否包含名为给定key的存储。使用callback方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -522,7 +522,7 @@ has(key: string): Promise<boolean> 检查存储对象是否包含名为给定key的存储。使用Promise方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -553,7 +553,7 @@ deleteSync(key: string): void 从存储对象中删除名为给定key的存储。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -572,7 +572,7 @@ delete(key: string, callback: AsyncCallback<void>): void 从存储对象中删除名为给定key的存储。使用callback方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -598,7 +598,7 @@ delete(key: string): Promise<void> 从存储对象删除名为给定key的存储。使用Promise方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -627,7 +627,7 @@ flushSync(): void 将当前storage对象中的修改保存到当前的storage,并同步存储到文件中。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **示例:** ```js @@ -641,7 +641,7 @@ flush(callback: AsyncCallback<void>): void 将当前storage对象中的修改保存到当前的storage,并异步存储到文件中。使用callback方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -666,7 +666,7 @@ flush(): Promise<void> 将当前storage对象中的修改保存到当前的storage,并异步存储到文件中。使用Promise方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **返回值:** | 类型 | 说明 | @@ -690,7 +690,7 @@ clearSync(): void 清除此存储对象中的所有存储。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **示例:** ```js @@ -704,7 +704,7 @@ clear(callback: AsyncCallback<void>): void 清除此存储对象中的所有存储。使用callback方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -729,7 +729,7 @@ clear(): Promise<void> 清除此存储对象中的所有存储。使用Promise方式返回结果,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **返回值:** | 类型 | 说明 | @@ -753,7 +753,7 @@ on(type: 'change', callback: Callback<StorageObserver>): void 订阅数据变更者类需要实现StorageObserver接口,订阅的key的值发生变更后,在执行flush/flushSync方法后,callback方法会被回调。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 说明 | @@ -778,7 +778,7 @@ off(type: 'change', callback: Callback<StorageObserver>): void 当不再进行订阅数据变更时,使用此接口取消订阅。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** | 参数名 | 类型 | 说明 | @@ -797,7 +797,7 @@ off(type: 'change', callback: Callback<StorageObserver>): void ## StorageObserver -**系统能力:**以下各项对应的系统能力均为SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** 以下各项对应的系统能力均为SystemCapability.DistributedDataManager.Preferences.Core | 名称 | 参数类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | @@ -807,7 +807,7 @@ off(type: 'change', callback: Callback<StorageObserver>): void 用于表示允许的数据字段类型。 -**系统能力:**SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core | 名称 | 说明 | | ------- | -------------------- | 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 106d4c642571d71fbe889765ad90af66975feaa2..4e6836d751ac64375ac1348206b0ee226d83a974 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-display.md +++ b/zh-cn/application-dev/reference/apis/js-apis-display.md @@ -14,7 +14,7 @@ import display from '@ohos.display'; 用于表示显示设备的状态。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 默认值 | 说明 | | -------- | -------- | -------- | @@ -31,7 +31,7 @@ import display from '@ohos.display'; 描述display对象的属性。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 参数类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | @@ -56,7 +56,7 @@ getDefaultDisplay(callback: AsyncCallback<Display>): void 获取当前默认的display对象。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -82,7 +82,7 @@ getDefaultDisplay(): Promise<Display> 获取当前默认的display对象。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -107,7 +107,7 @@ getAllDisplay(callback: AsyncCallback<Array<Display>>): void 获取当前所有的display对象。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -133,7 +133,7 @@ getAllDisplay(): Promise<Array<Display>> 获取当前所有的display对象。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -158,7 +158,7 @@ on(type: 'add'|'remove'|'change', callback: Callback<number>): void 开启监听。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -182,7 +182,7 @@ off(type: 'add'|'remove'|'change', callback?: Callback<number>): void 关闭监听。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** | 参数名 | 类型 | 必填 | 说明 | 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 fadd6242bd67becf4cb283530f2c2bd0af6480cd..9cddedcc8321d147111a7b9706f16da7f3386dac 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 @@ -2,7 +2,7 @@ 分布式数据管理为应用程序提供不同设备间数据库的分布式协同能力。通过调用分布式数据各个接口,应用程序可将数据保存到分布式数据库中,并可对分布式数据库中的数据进行增/删/改/查等各项操作。 ->![](../../public_sys-resources/icon-note.gif) **说明:** +>**说明:** >本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -19,7 +19,7 @@ createKVManager(config: KVManagerConfig, callback: AsyncCallback<KVManager> 创建一个KVManager对象实例,用于管理数据库对象,并通过callback方式返回,此方法为异步方法。 -**系统能力:**SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -58,7 +58,7 @@ createKVManager(config: KVManagerConfig): Promise<KVManager> 创建一个KVManager对象实例,用于管理数据库对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -99,7 +99,7 @@ try { 提供KVManager实例的配置信息,包括调用方的包名和用户信息。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 参数名 | 参数类型 | 必填 | 说明 | | ----- | ------ | ------ | ------ | @@ -110,7 +110,7 @@ try { 用户信息。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 参数类型 | 必填 | 说明 | | ----- | ------ | ------ | ------ | @@ -122,7 +122,7 @@ try { 用户类型。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 默认值 | 说明 | | ----- | ------ | ------ | @@ -139,7 +139,7 @@ getKVStore<T extends KVStore>(storeId: string, options: Options, callback: 通过指定Options和storeId,创建并获取KVStore数据库,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -183,7 +183,7 @@ getKVStore<T extends KVStore>(storeId: string, options: Options): Promise& 通过指定Options和storeId,创建并获取KVStore数据库,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -230,7 +230,7 @@ closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCa 通过storeId的值关闭指定的KVStore数据库,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -276,7 +276,7 @@ closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise<void& 通过storeId的值关闭指定的KVStore数据库,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -330,7 +330,7 @@ deleteKVStore(appId: string, storeId: string, callback: AsyncCallback<void> 通过storeId的值删除指定的KVStore数据库,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -373,7 +373,7 @@ deleteKVStore(appId: string, storeId: string): Promise<void> 通过storeId的值删除指定的KVStore数据库,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -427,7 +427,7 @@ getAllKVStoreId(appId: string, callback: AsyncCallback<string[]>): void 获取所有通过[getKVStore](#getkvstore)方法创建的且没有调用[deleteKVStore](#deletekvstore8)方法删除的KVStore数据库的storeId,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -457,7 +457,7 @@ getAllKVStoreId(appId: string): Promise<string[]> 获取所有通过[getKVStore](#getkvstore)方法创建的且没有调用[deleteKVStore](#deletekvstore8)方法删除的KVStore数据库的storeId,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -496,7 +496,7 @@ on(event: 'distributedDataServiceDie', deathCallback: Callback<void>): voi 订阅服务状态变更通知,并通过callback方式返回,此方法为同步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -528,7 +528,7 @@ off(event: 'distributedDataServiceDie', deathCallback?: Callback<void>): v 取消订阅服务状态变更通知,并通过callback方式返回,此方法为同步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -558,7 +558,7 @@ try { 用于提供创建数据库的配置信息。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 参数名 | 参数类型 | 必填 | 说明 | | ----- | ------ | ---- | ----------------------- | @@ -575,7 +575,7 @@ try { 用于指定创建的数据库类型。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 默认值 | 说明 | | --- | ---- | ----------------------- | @@ -588,7 +588,7 @@ try { 用于指定创建的数据库的安全级别。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 默认值 | 说明 | | --- | ---- | ----------------------- | @@ -604,7 +604,7 @@ try { KVStore常量。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 默认值 | 说明 | | --- | ---- | ----------------------- | @@ -619,7 +619,7 @@ KVStore常量。 表示数据库模式,可以在创建或打开数据库时创建 Schema 对象并将它们放入 Options 中。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 | 名称 | 类型 | 说明 | | --- | ---- | ----------------------- | @@ -634,13 +634,13 @@ constructor() 用于创建Schema实例的构造函数。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 ## FieldNode8+ ## 表示 Schema 实例的节点,提供定义存储在数据库中的值的方法。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 | 名称 | 类型 | 说明 | | --- | ---- | ----------------------- | @@ -654,7 +654,7 @@ constructor(name: string) 用于创建带有string字段FieldNode实例的构造函数。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -668,7 +668,7 @@ appendChild(child: FieldNode): boolean 向这个 FieldNode 添加一个子节点。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -716,7 +716,7 @@ getCount(): number 获取结果集中的行数。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -749,7 +749,7 @@ getPosition(): number 获取结果集中当前的读取位置。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -783,7 +783,7 @@ moveToFirst(): boolean 将读取位置移动到第一行。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -817,7 +817,7 @@ moveToLast(): boolean 将读取位置移动到最后一行。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -851,7 +851,7 @@ moveToNext(): boolean 将读取位置移动到下一行。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -885,7 +885,7 @@ moveToPrevious(): boolean 将读取位置移动到上一行。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -919,7 +919,7 @@ move(offset: number): boolean 将读取位置移动到当前位置的相对偏移量。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -959,7 +959,7 @@ moveToPosition(position: number): boolean 将读取位置从 0 移动到绝对位置。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -999,7 +999,7 @@ isFirst(): boolean 检查读取位置是否为第一行。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -1033,7 +1033,7 @@ isLast(): boolean 检查读取位置是否为最后一行。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -1066,7 +1066,7 @@ isBeforeFirst(): boolean 检查读取位置是否在第一行之前。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -1100,7 +1100,7 @@ isAfterLast(): boolean 检查读取位置是否在最后一行之后。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -1134,7 +1134,7 @@ getEntry(): Entry 获取键值对。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -1167,7 +1167,7 @@ try { 使用谓词表示数据库查询,提供创建Query实例、查询数据库中的数据和添加谓词的方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 ### constructor8+ ### @@ -1175,7 +1175,7 @@ constructor() 用于创建Schema实例的构造函数。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 ### reset8+ ### @@ -1184,7 +1184,7 @@ reset(): Query 公共查询重置。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -1215,7 +1215,7 @@ equalTo(field: string, value: number|string|boolean): Query 构造一个Query对象来查询具有指定字段的条目,其值等于指定的值。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1250,7 +1250,7 @@ notEqualTo(field: string, value: number|string|boolean): Query 构造一个Query对象以查询具有指定字段且值不等于指定值的条目。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1285,7 +1285,7 @@ greaterThan(field: string, value: number|string|boolean): Query 构造一个Query对象以查询具有大于指定值的指定字段的条目。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1320,7 +1320,7 @@ lessThan(field: string, value: number|string): Query 构造一个Query对象以查询具有小于指定值的指定字段的条目。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1355,7 +1355,7 @@ greaterThanOrEqualTo(field: string, value: number|string): Query 构造一个Query对象以查询具有指定字段且值大于或等于指定值的条目。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1390,7 +1390,7 @@ lessThanOrEqualTo(field: string, value: number|string): Query 构造一个Query对象以查询具有指定字段且值小于或等于指定值的条目。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1426,7 +1426,7 @@ isNull(field: string): Query 构造一个Query对象以查询具有值为null的指定字段的条目。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1461,7 +1461,7 @@ inNumber(field: string, valueList: number[]): Query 构造一个Query对象以查询具有指定字段的条目,其值在指定的值列表中。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1496,7 +1496,7 @@ inString(field: string, valueList: string[]): Query 构造一个Query对象以查询具有指定字段的条目,其值在指定的字符串值列表中。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1531,7 +1531,7 @@ notInNumber(field: string, valueList: number[]): Query 构造一个Query对象以查询具有指定字段的条目,该字段的值不在指定的值列表中。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1566,7 +1566,7 @@ notInString(field: string, valueList: string[]): Query 构造一个Query对象以查询具有指定字段且值不在指定字符串值列表中的条目。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1601,7 +1601,7 @@ like(field: string, value: string): Query 构造一个Query对象以查询具有与指定字符串值相似的指定字段的条目。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1636,7 +1636,7 @@ unlike(field: string, value: string): Query 构造一个Query对象以查询具有与指定字符串值不相似的指定字段的条目。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1671,7 +1671,7 @@ and(): Query 构造一个带有与条件的查询对象。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -1701,7 +1701,7 @@ or(): Query 构造一个带有或条件的Query对象。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -1731,7 +1731,7 @@ orderByAsc(field: string): Query 构造一个Query对象,将查询结果按升序排序。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1766,7 +1766,7 @@ orderByDesc(field: string): Query 构造一个Query对象,将查询结果按降序排序。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1801,7 +1801,7 @@ limit(total: number, offset: number): Query 构造一个Query对象来指定结果的数量和开始位置。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1837,7 +1837,7 @@ isNotNull(field: string): Query 使用不为空的指定字段创建查询条件。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1871,7 +1871,7 @@ beginGroup(): Query 创建一个带有左括号的查询条件组。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -1901,7 +1901,7 @@ endGroup(): Query 创建一个带有右括号的查询条件组。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -1931,7 +1931,7 @@ prefixKey(prefix: string): Query 创建具有指定键前缀的查询条件。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -1966,7 +1966,7 @@ setSuggestIndex(index: string): Query 设置一个指定的索引,将优先用于查询。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2001,7 +2001,7 @@ deviceId(deviceId:string):Query 添加设备ID作为key的前缀。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2035,7 +2035,7 @@ getSqlLike():string 获取指定Query对象的查询语句。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -2060,7 +2060,7 @@ try { KVStore数据库实例,提供增加数据、删除数据和订阅数据变更、订阅同步完成的方法。在调用KVStore的方法前,需要先通过getKVStore构建一个KVStore实例。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 ### put @@ -2068,7 +2068,7 @@ put(key: string, value: Uint8Array | string | number | boolean, callback: AsyncC 添加指定类型键值对到数据库,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2104,7 +2104,7 @@ put(key: string, value: Uint8Array | string | number | boolean): Promise<void 添加指定类型键值对到数据库,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2143,7 +2143,7 @@ delete(key: string, callback: AsyncCallback<void>): void 从数据库中删除指定键值的数据,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2185,7 +2185,7 @@ delete(key: string): Promise<void> 从数据库中删除指定键值的数据,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2228,7 +2228,7 @@ on(event: 'dataChange', type: SubscribeType, observer: Callback<ChangeNotific 订阅指定类型的数据变更通知,此方法为同步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2254,7 +2254,7 @@ on(event: 'syncComplete', syncCallback: Callback<Array<[string, number]> 订阅同步完成事件回调通知,此方法为同步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2278,7 +2278,7 @@ off(event:'dataChange', observer?: Callback<ChangeNotification>): void 取消订阅数据变更通知,此方法为同步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2306,7 +2306,7 @@ putBatch(entries: Entry[], callback: AsyncCallback<void>): void 批量插入键值对到KVStore数据库中,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2353,7 +2353,7 @@ putBatch(entries: Entry[]): Promise<void> 批量插入键值对到KVStore数据库中,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2408,7 +2408,7 @@ deleteBatch(keys: string[], callback: AsyncCallback<void>): void 批量删除KVStore数据库中的键值对,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2455,7 +2455,7 @@ deleteBatch(keys: string[]): Promise<void> 批量删除KVStore数据库中的键值对,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2511,7 +2511,7 @@ startTransaction(callback: AsyncCallback<void>): void 启动KVStore数据库中的事务,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2563,7 +2563,7 @@ startTransaction(): Promise<void> 启动KVStore数据库中的事务,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -2598,7 +2598,7 @@ commit(callback: AsyncCallback<void>): void 提交KVStore数据库中的事务,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2630,7 +2630,7 @@ commit(): Promise<void> 提交KVStore数据库中的事务,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -2660,7 +2660,7 @@ rollback(callback: AsyncCallback<void>): void 在KVStore数据库中回滚事务,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2692,7 +2692,7 @@ rollback(): Promise<void> 在KVStore数据库中回滚事务,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -2722,7 +2722,7 @@ enableSync(enabled: boolean, callback: AsyncCallback<void>): void 设定是否开启同步,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2755,7 +2755,7 @@ enableSync(enabled: boolean): Promise<void> 设定是否开启同步,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2791,7 +2791,7 @@ setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: Asy 设置同步范围标签,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2823,7 +2823,7 @@ setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise<v 设置同步范围标签,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2861,7 +2861,7 @@ try { 描述订阅类型。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 默认值 | 说明 | | ----- | ------ | ----------------------- | @@ -2873,7 +2873,7 @@ try { 数据变更时通知的对象,包括数据插入的数据、更新的数据、删除的数据和设备ID。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 参数类型 |可读 |可写 | 说明 | | ----- | ------- | -----| ------|------------------------ | @@ -2886,7 +2886,7 @@ try { 存储在数据库中的键值对。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 参数类型 |可读 |可写 | 说明 | | ----- | ------- | -----| ------|------------------------ | @@ -2898,7 +2898,7 @@ try { 存储在数据库中的对象。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 参数类型 |可读 |可写 | 说明 | | ----- | ------- | -----| ------|------------------------ | @@ -2911,7 +2911,7 @@ try { 只能被内部应用使用。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 默认值 | 说明 | | ----- | ------ | ----------------------- | @@ -2926,7 +2926,7 @@ try { 单版本分布式数据库,继承自KVStore,提供查询数据和同步数据的方法。在调用 SingleKVStore 的方法前,需要先通过 [getKVStore](#getkvstore) 构建一个 SingleKVStore 实例。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 ### get @@ -2934,7 +2934,7 @@ get(key: string, callback: AsyncCallback<Uint8Array | string | boolean | numb 获取指定键的值,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -2972,7 +2972,7 @@ get(key: string): Promise<Uint8Array | string | boolean | number> 获取指定键的值,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3015,7 +3015,7 @@ getEntries(keyPrefix: string, callback: AsyncCallback<Entry[]>): void 获取匹配指定键前缀的所有键值对,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3061,7 +3061,7 @@ getEntries(keyPrefix: string): Promise<Entry[]> 获取匹配指定键前缀的所有键值对,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3119,7 +3119,7 @@ getEntries(query: Query, callback: AsyncCallback<Entry[]>): void 获取与指定 Query 对象匹配的键值对列表,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3170,7 +3170,7 @@ getEntries(query: Query): Promise<Entry[]> 获取匹配指定键前缀的所有键值对,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core **参数:** @@ -3227,7 +3227,7 @@ getResultSet(keyPrefix: string, callback: AsyncCallback<KvStoreResultSet>) 从 KvStore 数据库中获取具有指定前缀的结果集,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3276,7 +3276,7 @@ getResultSet(keyPrefix: string): Promise<KvStoreResultSet> 从 KVStore 数据库中获取具有指定前缀的结果集,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3336,7 +3336,7 @@ getResultSet(query: Query, callback: AsyncCallback<KvStoreResultSet>): voi 获取与指定 Query 对象匹配的 KvStoreResultSet 对象,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3384,7 +3384,7 @@ getResultSet(query: Query): Promise<KvStoreResultSet> 获取与指定 Query 对象匹配的 KvStoreResultSet 对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3440,7 +3440,7 @@ closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback<void>) 关闭由 getResultSet 返回的 KvStoreResultSet 对象,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3474,7 +3474,7 @@ closeResultSet(resultSet: KvStoreResultSet): Promise<void> 关闭由 getResultSet 返回的 KvStoreResultSet 对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3511,7 +3511,7 @@ getResultSize(query: Query, callback: AsyncCallback<number>): void 获取与指定 Query 对象匹配的结果数,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3557,7 +3557,7 @@ getResultSize(query: Query): Promise<number> 获取与指定 Query 对象匹配的结果数,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3612,7 +3612,7 @@ removeDeviceData(deviceId: string, callback: AsyncCallback<void>): void 删除指定设备的数据,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3654,7 +3654,7 @@ removeDeviceData(deviceId: string): Promise<void> 删除指定设备的数据,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3703,7 +3703,7 @@ on(event: 'syncComplete', syncCallback: Callback<Array<[string, number]> 订阅同步完成事件回调通知,此方法为同步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3739,7 +3739,7 @@ off(event: 'syncComplete', syncCallback?: Callback<Array<[string, number]& 取消订阅同步完成事件回调通知,此方法为同步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3772,7 +3772,7 @@ sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void **需要权限**: ohos.permission.DISTRIBUTED_DATASYNC。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3795,7 +3795,7 @@ setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback<void>) 设置允许数据库同步的默认延迟,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3825,7 +3825,7 @@ setSyncParam(defaultAllowedDelayMs: number): Promise<void> 设置允许数据库同步的默认延迟,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3863,7 +3863,7 @@ getSecurityLevel(callback: AsyncCallback<SecurityLevel>): void 获取数据库的安全级别,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -3891,7 +3891,7 @@ getSecurityLevel(): Promise<SecurityLevel> 获取数据库的安全级别,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **返回值:** @@ -3919,7 +3919,7 @@ try { 在分布式系统中按设备管理分布式数据,继承自KVStore,提供查询数据和同步数据的方法。在调用DeviceKVStore的方法前,需要先通过[getKVStore](#getkvstore)构建一个DeviceKVStore实例。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 ### get8+ ### @@ -3927,7 +3927,7 @@ get(deviceId: string, key: string, callback: AsyncCallback<boolean|string|num 获取与指定设备 ID 和 key 匹配的 String 值,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -3962,7 +3962,7 @@ get(deviceId: string, key: string): Promise<boolean|string|number|Uint8Array& 获取与指定设备 ID 和 key 匹配的 String 值,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4006,7 +4006,7 @@ getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback<Entry 获取与指定设备 ID 和 key 前缀匹配的所有键值对,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4054,7 +4054,7 @@ getEntries(deviceId: string, keyPrefix: string): Promise<Entry[]> 获取与指定设备 ID 和 key 前缀匹配的所有键值对,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4113,7 +4113,7 @@ getEntries(query: Query, callback: AsyncCallback<Entry[]>): void 获取与指定 Query 对象匹配的键值对列表,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4166,7 +4166,7 @@ getEntries(query: Query): Promise<Entry[]> 获取与指定 Query 对象匹配的键值对列表,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4224,7 +4224,7 @@ getEntries(deviceId: string, query: Query, callback: AsyncCallback<Entry[]> 获取与指定设备 ID 和 Query 对象匹配的键值对列表,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4278,7 +4278,7 @@ getEntries(deviceId: string, query: Query): Promise<Entry[]> 获取与指定设备 ID 和 Query 对象匹配的键值对列表,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4338,7 +4338,7 @@ getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback<KvS 获取与指定设备 ID 和 key 前缀匹配的 KvStoreResultSet 对象,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4373,7 +4373,7 @@ getResultSet(deviceId: string, keyPrefix: string): Promise<KvStoreResultSet&g 获取与指定设备 ID 和 key 前缀匹配的 KvStoreResultSet 对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4417,7 +4417,7 @@ getResultSet(query: Query, callback: AsyncCallback<KvStoreResultSet>): voi 获取与指定 Query 对象匹配的 KvStoreResultSet 对象,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4469,7 +4469,7 @@ getResultSet(query: Query): Promise<KvStoreResultSet> 获取与指定 Query 对象匹配的 KvStoreResultSet 对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4533,7 +4533,7 @@ getResultSet(deviceId: string, query: Query, callback: AsyncCallback<KvStoreR 获取与指定设备ID和Query对象匹配的KvStoreResultSet对象,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4585,7 +4585,7 @@ getResultSet(deviceId: string, query: Query): Promise<KvStoreResultSet> 获取与指定设备ID和Query对象匹配的KvStoreResultSet对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4651,7 +4651,7 @@ closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback<void>) 关闭由 getResultSet 返回的 KvStoreResultSet 对象,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4686,7 +4686,7 @@ closeResultSet(resultSet: KvStoreResultSet): Promise<void> 关闭由 getResultSet 返回的 KvStoreResultSet 对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4724,7 +4724,7 @@ getResultSize(query: Query, callback: AsyncCallback<number>): void 获取与指定 Query 对象匹配的结果数,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4771,7 +4771,7 @@ getResultSize(query: Query): Promise<number> 获取与指定 Query 对象匹配的结果数,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4827,7 +4827,7 @@ getResultSize(deviceId: string, query: Query, callback: AsyncCallback<number& 获取与指定设备 ID 和 Query 对象匹配的结果数,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4874,7 +4874,7 @@ getResultSize(deviceId: string, query: Query): Promise<number> 获取与指定设备 ID 和 Query 对象匹配的结果数,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4930,7 +4930,7 @@ removeDeviceData(deviceId: string, callback: AsyncCallback<void>): void 从当前数据库中删除指定设备的数据,并通过callback方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -4972,7 +4972,7 @@ removeDeviceData(deviceId: string): Promise<void> 从当前数据库中删除指定设备的数据,并通过Promise方式返回,此方法为异步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 **参数:** @@ -5023,7 +5023,7 @@ sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void **需要权限**: ohos.permission.DISTRIBUTED_DATASYNC。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -5060,7 +5060,7 @@ on(event: 'syncComplete', syncCallback: Callback<Array<[string, number]> 订阅同步完成事件回调通知,该方法为同步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -5095,7 +5095,7 @@ off(event: 'syncComplete', syncCallback?: Callback<Array<[string, number]& 取消订阅同步完成事件回调通知,该方法为同步方法。 -**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** SystemCapability.DistributedDataManager.KVStore.Core。 **参数:** @@ -5124,7 +5124,7 @@ try { 用于指定同步模式。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 | 名称 | 默认值 | 说明 | | ----- | ------ | ----------------------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-screenshot.md b/zh-cn/application-dev/reference/apis/js-apis-screenshot.md index 988bd8056c19106f579aa483680310a2e807071e..98647b2b1b395ef9f7594135fb7732eff4fc608f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-screenshot.md +++ b/zh-cn/application-dev/reference/apis/js-apis-screenshot.md @@ -13,7 +13,7 @@ import screenshot from '@ohos.screenshot'; 设置截取图像的信息。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.WindowManager.WindowManager.Core。 | 参数名 | 类型 | 必填 | 说明 | @@ -27,7 +27,7 @@ import screenshot from '@ohos.screenshot'; 表示截取图像的区域。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.WindowManager.WindowManager.Core。 | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------------------------------------------------------------ | @@ -41,7 +41,7 @@ import screenshot from '@ohos.screenshot'; 表示截取图像的大小。 -**系统能力:**以下各项对应的系统能力均为 SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.WindowManager.WindowManager.Core。 | 参数名 | 类型 | 必填 | 说明 | | ------ | ------ | ---- | ------------------------------------------------------------ | @@ -54,7 +54,7 @@ save(options?: ScreenshotOptions, callback: AsyncCallback<image.PixelMap>) 获取屏幕截图。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **需要权限**:ohos.permission.CAPTURE_SCREEN @@ -94,7 +94,7 @@ save(options?: ScreenshotOptions): Promise<image.PixelMap> 获取屏幕截图。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **需要权限**:ohos.permission.CAPTURE_SCREEN diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-storage.md b/zh-cn/application-dev/reference/apis/js-apis-system-storage.md index 92f59fb8c2a6739c756f038c73e0eb0d5b1deff2..2b2d824d1019b72cc3796462e163272d3d2fca7e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-storage.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-storage.md @@ -21,7 +21,7 @@ get(Object): void 通过索引读取缓存中存储的值。 -**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** @@ -61,7 +61,7 @@ set(Object): void 修改缓存中索引对应的值。 -**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** @@ -99,7 +99,7 @@ clear(Object): void 清空缓存中存储的键值对。 -**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** @@ -133,7 +133,7 @@ delete(Object): void 删除缓存中索引对应的键值对。 -**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core +**系统能力:** SystemCapability.DistributedDataManager.Preferences.Core **参数:** 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 a97f93d63e32026c87ef2bbcb0b4a592b565be0f..8b29d3db39010ff58d7b15fb5afb4b7ecaae66f4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-usb.md +++ b/zh-cn/application-dev/reference/apis/js-apis-usb.md @@ -15,7 +15,7 @@ getDevices(): Array<Readonly<USBDevice>> 获取USB设备列表。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **返回值:** @@ -88,7 +88,7 @@ connectDevice(device: USBDevice): Readonly<USBDevicePipe> 需要调用[usb.getDevices](#usbgetdevices)获取设备信息以及device;再调用[usb.requestRight](#usbrequestright)获取设备请求权限。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -113,7 +113,7 @@ hasRight(deviceName: string): boolean 判断是否有权访问该设备。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -139,7 +139,7 @@ requestRight(deviceName: string): Promise<boolean> 请求软件包的临时权限以访问设备。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -168,7 +168,7 @@ claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): numbe 需要调用[usb.getDevices](#usbgetdevices)获取设备信息以及interfaces;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)接口得到devicepipe作为参数。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -197,7 +197,7 @@ releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number 需要调用[usb.claimInterface](#usbclaiminterface)先获取接口,才能使用此方法释放接口。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -225,7 +225,7 @@ setConfiguration(pipe: USBDevicePipe, config: USBConfig): number 需要调用[usb.getDevices](#usbgetdevices)获取设备信息以及config;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)得到devicepipe作为参数。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -253,7 +253,7 @@ setInterface(pipe: USBDevicePipe, iface: USBInterface): number 需要调用[usb.getDevices](#usbgetdevices)获取设备列表以及interfaces;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)得到devicepipe作为参数。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -281,7 +281,7 @@ getRawDescriptor(pipe: USBDevicePipe): Uint8Array 需要调用[usb.getDevices](#usbgetdevices)获取设备列表;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)接口得到devicepipe作为参数。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -307,7 +307,7 @@ getFileDescriptor(pipe: USBDevicePipe): number 需要调用[usb.getDevices](#usbgetdevices)获取设备列表;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)接口得到devicepipe作为参数。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -334,7 +334,7 @@ controlTransfer(pipe: USBDevicePipe, contrlparam: USBControlParams, timeout?: nu 需要调用[usb.getDevices](#usbgetdevices)获取设备列表;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)接口得到devicepipe作为参数。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -364,7 +364,7 @@ bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, tim 需要调用[usb.getDevices](#usbgetdevices)获取设备信息列表以及endpoint;再调用[usb.requestRight](#usbrequestright)获取设备请求权限;然后调用[usb.connectDevice](#usbconnectdevice)接口得到返回数据devicepipe之后,再次获取接口[usb.claimInterface](#usbclaiminterface);再调用usb.bulkTransfer接口。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -398,7 +398,7 @@ closePipe(pipe: USBDevicePipe): number 需要调用[usb.getDevices](#usbgetdevices)获取设备列表;调用[usb.requestRight](#usbrequestright)获取设备请求权限;调用[usb.connectDevice](#usbconnectdevice)得到devicepipe作为参数。 -**系统能力:** SystemCapability.USB.USBManager +**系统能力:** SystemCapability.USB.USBManager **参数:** | 参数名 | 类型 | 必填 | 说明 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-webgl.md b/zh-cn/application-dev/reference/apis/js-apis-webgl.md index 1ad78b29578dd04a5737d00ae1df438e802dfec9..4665a9b2f71a6e21baffb1330f2eb7569976b99b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-webgl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-webgl.md @@ -34,7 +34,7 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); ## Type -**系统能力:**以下各项对应的系统能力均为 SystemCapability.Graphic.Graphic2D.WebGL。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.Graphic.Graphic2D.WebGL。 **表1** Type @@ -62,7 +62,7 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); ## Interface -**系统能力:**以下各项对应的系统能力均为 SystemCapability.Graphic.Graphic2D.WebGL。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.Graphic.Graphic2D.WebGL。 **表2** Interface diff --git a/zh-cn/application-dev/reference/apis/js-apis-webgl2.md b/zh-cn/application-dev/reference/apis/js-apis-webgl2.md index f9801b0bef2af2d97385cd55165cfafaf087c499..aca7ad62d3759c953a3235563b2d57c1ad416f22 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-webgl2.md +++ b/zh-cn/application-dev/reference/apis/js-apis-webgl2.md @@ -34,7 +34,7 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); ## Type -**系统能力:**以下各项对应的系统能力均为 SystemCapability.Graphic.Graphic2D.WebGL2。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.Graphic.Graphic2D.WebGL2。 **表1** Type @@ -48,7 +48,7 @@ gl.clearColor(0.0, 0.0, 0.0, 1.0); ## Interface -**系统能力:**以下各项对应的系统能力均为 SystemCapability.Graphic.Graphic2D.WebGL2。 +**系统能力:** 以下各项对应的系统能力均为 SystemCapability.Graphic.Graphic2D.WebGL2。 **表2** Interface 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 0fb7f35accd947b0fadcaa4502419ba8ffee8e09..507f67d85cf93cf3b8c0abfc7546213e10b0236b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-window.md +++ b/zh-cn/application-dev/reference/apis/js-apis-window.md @@ -15,7 +15,7 @@ import window from '@ohos.window'; 窗口类型。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 默认值 | 说明 | | ----------------- | ------ | ------------------ | @@ -26,7 +26,7 @@ import window from '@ohos.window'; 窗口内容需要规避区域的类型。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 默认值 | 说明 | | ----------- | ------ | ------------------ | @@ -39,7 +39,7 @@ import window from '@ohos.window'; 此接口为系统接口,三方应用不支持调用。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 默认值 | 说明 | | ---------- | ------ | ----------------------------- | @@ -53,7 +53,7 @@ import window from '@ohos.window'; 状态栏导航栏的属性。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 参数类型 | 可读 | 可写 | 说明 | | -------------------------------------- | -------- | ---- | ---- | ------------------------------------------------------------ | @@ -70,7 +70,7 @@ import window from '@ohos.window'; 此接口为系统接口,三方应用不支持调用。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 参数类型 | 可读 | 可写 | 说明 | | --------------- | ------------------------- | ---- | ---- | ------------------------------------------------------------ | @@ -86,7 +86,7 @@ import window from '@ohos.window'; 此接口为系统接口,三方应用不支持调用。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 参数类型 | 可读 | 可写 | 说明 | | ---------- | --------------------------------------------------- | ---- | ---- | -------------------------- | @@ -97,7 +97,7 @@ import window from '@ohos.window'; 窗口矩形区域。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 参数类型 | 可读 | 可写 | 说明 | | ------ | -------- | ---- | ---- | ------------------ | @@ -110,7 +110,7 @@ import window from '@ohos.window'; 表示窗口内容规避区域。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 参数类型 | 可读 | 可写 | 说明 | | ---------- | ------------- | ---- | ---- | ------------------ | @@ -123,7 +123,7 @@ import window from '@ohos.window'; 窗口大小。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 参数类型 | 可读 | 可写 | 说明 | | ------ | -------- | ---- | ---- | ---------- | @@ -134,7 +134,7 @@ import window from '@ohos.window'; 窗口属性。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 参数类型 | 可读 | 可写 | 说明 | | ------------------------------- | ------------------------- | ---- | ---- | ------------------------------------------------------------ | @@ -155,7 +155,7 @@ import window from '@ohos.window'; 色域模式。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core。 | 名称 | 默认值 | 说明 | | ---------- | ------ | -------------- | @@ -170,7 +170,7 @@ create(id: string, type: WindowType, callback: AsyncCallback<Window>): voi 从API version 8开始,此接口废弃,推荐使用[window.create8+](#windowcreate8)接口。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -203,7 +203,7 @@ create(id: string, type: WindowType): Promise<Window> 从API version 8开始,此接口废弃,推荐使用[window.create8+](#windowcreate8)接口。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -239,7 +239,7 @@ create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback<Wi 从API version 9开始,当Context为[ServiceExtensionContext](js-apis-service-extension-context.md)时,创建系统窗口,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -273,7 +273,7 @@ create(ctx: Context, id: string, type: WindowType): Promise<Window> 从API version 9开始,当Context为[ServiceExtensionContext](js-apis-service-extension-context.md)时,创建系统窗口,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -308,7 +308,7 @@ find(id: string, callback: AsyncCallback<Window>): void 查找id所对应的窗口,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -337,7 +337,7 @@ find(id: string): Promise<Window> 查找id所对应的窗口,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -372,7 +372,7 @@ getTopWindow(callback: AsyncCallback<Window>): void 从API version 8开始,此接口废弃,推荐使用[window.getTopWindow8+](#windowgettopwindow8)接口。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -402,7 +402,7 @@ getTopWindow(): Promise<Window> 从API version 8开始,此接口废弃,推荐使用[window.getTopWindow8+](#windowgettopwindow8)接口。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -429,7 +429,7 @@ getTopWindow(ctx: Context, callback: AsyncCallback<Window>): void 获取当前应用内最后显示的窗口,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -458,7 +458,7 @@ getTopWindow(ctx: Context): Promise<Window> 获取当前应用内最后显示的窗口,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -493,7 +493,7 @@ on(type: 'systemBarTintChange', callback: Callback<SystemBarTintState>): v 此接口为系统接口,三方应用不支持调用。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -519,7 +519,7 @@ off(type: 'systemBarTintChange', callback?: Callback<SystemBarTintState >) 此接口为系统接口,三方应用不支持调用。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -547,7 +547,7 @@ hide (callback: AsyncCallback<void>): void 此接口为系统接口,三方应用不支持调用。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -575,7 +575,7 @@ hide(): Promise<void> 此接口为系统接口,三方应用不支持调用。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -600,7 +600,7 @@ show(callback: AsyncCallback<void>): void 显示当前窗口,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -626,7 +626,7 @@ show(): Promise<void> 显示当前窗口,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -651,7 +651,7 @@ destroy(callback: AsyncCallback<void>): void 销毁当前窗口,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -677,7 +677,7 @@ destroy(): Promise<void> 销毁当前窗口,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -702,7 +702,7 @@ moveTo(x: number, y: number, callback: AsyncCallback<void>): void 移动窗口位置,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -731,7 +731,7 @@ moveTo(x: number, y: number): Promise<void> 移动窗口位置,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -763,7 +763,7 @@ resetSize(width: number, height: number, callback: AsyncCallback<void>): v 改变当前窗口大小,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -791,7 +791,7 @@ resetSize(width: number, height: number): Promise<void> 改变当前窗口大小,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -825,7 +825,7 @@ setWindowType(type: WindowType, callback: AsyncCallback<void>): void 此接口为系统接口,三方应用不支持调用。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -855,7 +855,7 @@ setWindowType(type: WindowType): Promise<void> 此接口为系统接口,三方应用不支持调用。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -887,7 +887,7 @@ getProperties(callback: AsyncCallback<WindowProperties>): void 获取当前窗口的属性,使用callback方式作为异步方法返回WindowProperties。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -913,7 +913,7 @@ getProperties(): Promise<WindowProperties> 获取当前窗口的属性,使用promise方式作为异步方法返回WindowProperties。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -938,7 +938,7 @@ getAvoidArea(type: AvoidAreaType, callback: AsyncCallback<AvoidArea>): voi 获取窗口内容规避的区域,如系统的系统栏区域、凹凸区域。使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -966,7 +966,7 @@ getAvoidArea(type: AvoidAreaType): Promise<AvoidArea> 获取窗口内容规避的区域,如系统的系统栏区域、凹凸区域。使用promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -997,7 +997,7 @@ setFullScreen(isFullScreen: boolean, callback: AsyncCallback<void>): void 设置是否为全屏状态,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1025,7 +1025,7 @@ setFullScreen(isFullScreen: boolean): Promise<void> 设置是否为全屏状态,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1057,7 +1057,7 @@ setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback<void 设置窗口的布局是否为全屏显示状态,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1085,7 +1085,7 @@ setLayoutFullScreen(isLayoutFullScreen: boolean): Promise<void> 设置窗口的布局是否为全屏显示状态,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1117,7 +1117,7 @@ setSystemBarEnable(names: Array<'status' | 'navigation'>, callback: AsyncCallbac 设置导航栏、状态栏的可见模式,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1145,7 +1145,7 @@ setSystemBarEnable(names: Array<'status' | 'navigation'>): Promise<void> 设置导航栏、状态栏的可见模式,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1177,7 +1177,7 @@ setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: Async 设置窗口内导航栏、状态栏的属性,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1214,7 +1214,7 @@ setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise<voi 设置窗口内导航栏、状态栏的属性,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1255,7 +1255,7 @@ loadContent(path: string, callback: AsyncCallback<void>): void 当前窗口加载具体页面内容,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1282,7 +1282,7 @@ loadContent(path: string): Promise<void> 当前窗口加载具体页面内容,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1313,7 +1313,7 @@ isShowing(callback: AsyncCallback<boolean>): void 判断当前窗口是否已显示,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1339,7 +1339,7 @@ isShowing(): Promise<boolean> 判断当前窗口是否已显示,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -1364,7 +1364,7 @@ on(type: 'windowSizeChange', callback: Callback<Size>): void 开启监听。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1388,7 +1388,7 @@ off(type: 'windowSizeChange', callback?: Callback<Size >): void 关闭监听。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1410,7 +1410,7 @@ on(type: 'systemAvoidAreaChange', callback: Callback<AvoidArea>): void 开启监听。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1434,7 +1434,7 @@ off(type: 'systemAvoidAreaChange', callback?: Callback<AvoidArea>): void 关闭监听。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1458,7 +1458,7 @@ on(type: 'keyboardHeightChange', callback: Callback<number>): void 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1484,7 +1484,7 @@ off(type: 'keyboardHeightChange', callback?: Callback<number>): void 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1506,7 +1506,7 @@ isSupportWideGamut(callback: AsyncCallback<boolean>): void 判断当前窗口是否支持广色域模式,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1532,7 +1532,7 @@ isSupportWideGamut(): Promise<boolean> 判断当前窗口是否支持广色域模式,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -1557,7 +1557,7 @@ setColorSpace(colorSpace:ColorSpace, callback: AsyncCallback<void>): void 设置当前窗口为广色域模式或默认色域模式,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1584,7 +1584,7 @@ setColorSpace(colorSpace:ColorSpace): Promise<void> 设置当前窗口为广色域模式或默认色域模式,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1615,7 +1615,7 @@ getColorSpace(callback: AsyncCallback<ColorSpace>): void 获取当前窗口色域模式,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1641,7 +1641,7 @@ getColorSpace(): Promise<ColorSpace> 获取当前窗口色域模式,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -1668,7 +1668,7 @@ setBackgroundColor(color: string, callback: AsyncCallback<void>): void 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1698,7 +1698,7 @@ setBackgroundColor(color: string): Promise<void> 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1732,7 +1732,7 @@ setBrightness(brightness: number, callback: AsyncCallback<void>): void 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1762,7 +1762,7 @@ setBrightness(brightness: number): Promise<void> 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1796,7 +1796,7 @@ setDimBehind(dimBehindValue: number, callback: AsyncCallback<void>): void 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1825,7 +1825,7 @@ setDimBehind(dimBehindValue: number): Promise<void> 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1858,7 +1858,7 @@ setFocusable(isFocusable: boolean, callback: AsyncCallback<void>): void 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1888,7 +1888,7 @@ setFocusable(isFocusable: boolean): Promise<void> 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1922,7 +1922,7 @@ setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback<void>): v 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1952,7 +1952,7 @@ setKeepScreenOn(isKeepScreenOn: boolean): Promise<void> 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -1986,7 +1986,7 @@ setOutsideTouchable(touchable: boolean, callback: AsyncCallback<void>): vo 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2015,7 +2015,7 @@ setOutsideTouchable(touchable: boolean): Promise<void> 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2048,7 +2048,7 @@ setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback<void>): voi 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2079,7 +2079,7 @@ setPrivacyMode(isPrivacyMode: boolean): Promise<void> 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2113,7 +2113,7 @@ setTouchable(isTouchable: boolean, callback: AsyncCallback<void>): void 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2144,7 +2144,7 @@ setTouchable(isTouchable: boolean): Promise<void> 本接口在OpenHarmony 3.1 Release版本仅为接口定义,暂不支持使用。接口将在OpenHarmony 3.1 MR版本中提供使用支持。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2174,7 +2174,7 @@ setTouchable(isTouchable: boolean): Promise<void> WindowStage生命周期。 -**系统能力:**以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core +**系统能力:** 以下各项对应的系统能力均为SystemCapability.WindowManager.WindowManager.Core | 名称 | 默认值 | 说明 | | ---------- | ------ | -------- | @@ -2193,7 +2193,7 @@ getMainWindow(): Promise<Window> 获取该WindowStage实例下的主窗口,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -2225,7 +2225,7 @@ getMainWindow(callback: AsyncCallback<Window>): void 获取该WindowStage实例下的主窗口,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2258,7 +2258,7 @@ createSubWindow(name: string): Promise<Window> 创建该WindowStage实例下的子窗口,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2296,7 +2296,7 @@ createSubWindow(name: string, callback: AsyncCallback<Window>): void 创建该WindowStage实例下的子窗口,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2331,7 +2331,7 @@ getSubWindow(): Promise<Array<Window>> 获取该WindowStage实例下的所有子窗口,使用Promise方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **返回值:** @@ -2363,7 +2363,7 @@ getSubWindow(callback: AsyncCallback<Array<Window>>): void 获取该WindowStage实例下的所有子窗口,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2396,7 +2396,7 @@ loadContent(path: string, callback: AsyncCallback<void>): void 为当前WindowStage的主窗口加载具体页面内容,使用callback方式作为异步方法。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Coretype为'windowSizeChange' +**系统能力:** SystemCapability.WindowManager.WindowManager.Coretype为'windowSizeChange' **参数:** @@ -2428,7 +2428,7 @@ on(eventType: 'windowStageEvent', callback: Callback<WindowStageEventType> 开启WindowStage生命周期变化的监听。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:** @@ -2457,7 +2457,7 @@ off(eventType: 'windowStageEvent', callback?: Callback<WindowStageEventType&g 关闭WindowStage生命周期变化的监听。 -**系统能力:**SystemCapability.WindowManager.WindowManager.Core +**系统能力:** SystemCapability.WindowManager.WindowManager.Core **参数:**