Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
03b6d464
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
03b6d464
编写于
8月 23, 2023
作者:
Z
zhouhongli2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
Signed-off-by:
N
zhouhongli2023
<
zhouhongli5@huawei.com
>
上级
bf420ac6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
44 addition
and
44 deletion
+44
-44
zh-cn/application-dev/reference/apis/js-apis-contact.md
zh-cn/application-dev/reference/apis/js-apis-contact.md
+44
-44
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-contact.md
浏览文件 @
03b6d464
...
...
@@ -63,7 +63,7 @@ addContact(context: Context, contact: Contact, callback: AsyncCallback<number>):
});
```
## contact.addContact(deprecated)
## contact.addContact(deprecated)
<sup>7+<sup>
addContact(contact:Contact, callback:AsyncCallback
<
number
>
): void
...
...
@@ -149,7 +149,7 @@ addContact(context: Context, contact: Contact): Promise<number>
});
```
## contact.addContact(deprecated)
## contact.addContact(deprecated)
<sup>7+<sup>
addContact(contact: Contact): Promise
<
number
>
...
...
@@ -231,7 +231,7 @@ deleteContact(context: Context, key: string, callback: AsyncCallback<void>
});
```
## contact.deleteContact(deprecated)
## contact.deleteContact(deprecated)
<sup>7+<sup>
deleteContact(key: string, callback: AsyncCallback
<
void
>
): void
...
...
@@ -311,7 +311,7 @@ deleteContact(context: Context, key: string): Promise<void>
});
```
## contact.deleteContact(deprecated)
## contact.deleteContact(deprecated)
<sup>7+<sup>
deleteContact(key: string): Promise
<
void
>
...
...
@@ -395,7 +395,7 @@ updateContact(context: Context, contact: Contact, callback: AsyncCallback<voi
});
```
## contact.updateContact(deprecated)
## contact.updateContact(deprecated)
<sup>7+<sup>
updateContact(contact: Contact, callback: AsyncCallback
<
void
>
): void
...
...
@@ -482,7 +482,7 @@ updateContact(context: Context, contact: Contact, attrs: ContactAttributes, cal
});
```
## contact.updateContact(deprecated)
## contact.updateContact(deprecated)
<sup>7+<sup>
updateContact(contact: Contact, attrs: ContactAttributes, callback: AsyncCallback
<
void
>
): void
...
...
@@ -576,7 +576,7 @@ updateContact(context: Context, contact: Contact, attrs?: ContactAttributes): P
});
```
## contact.updateContact(deprecated)
## contact.updateContact(deprecated)
<sup>7+<sup>
updateContact(contact: Contact, attrs?: ContactAttributes): Promise
<
void
>
...
...
@@ -662,7 +662,7 @@ isLocalContact(context: Context, id: number, callback: AsyncCallback<boolean
});
```
## contact.isLocalContact(deprecated)
## contact.isLocalContact(deprecated)
<sup>7+<sup>
isLocalContact(id: number, callback: AsyncCallback
<
boolean
>
): void
...
...
@@ -741,7 +741,7 @@ isLocalContact(context: Context, id: number): Promise<boolean>
});
```
## contact.isLocalContact(deprecated)
## contact.isLocalContact(deprecated)
<sup>7+<sup>
isLocalContact(id: number): Promise
<
boolean
>
...
...
@@ -820,7 +820,7 @@ isMyCard(context: Context, id: number, callback: AsyncCallback<boolean>):
});
```
## contact.isMyCard(deprecated)
## contact.isMyCard(deprecated)
<sup>7+<sup>
isMyCard(id: number, callback: AsyncCallback
<
boolean
>
): void
...
...
@@ -900,7 +900,7 @@ isMyCard(context: Context, id: number): Promise<boolean>
});
```
## contact.isMyCard(deprecated)
## contact.isMyCard(deprecated)
<sup>7+<sup>
isMyCard(id: number): Promise
<
boolean
>
...
...
@@ -978,7 +978,7 @@ queryMyCard(context: Context, callback: AsyncCallback<Contact>): void
});
```
## contact.queryMyCard(deprecated)
## contact.queryMyCard(deprecated)
<sup>7+<sup>
queryMyCard(callback: AsyncCallback
<
Contact
>
): void
...
...
@@ -1054,7 +1054,7 @@ queryMyCard(context: Context, attrs: ContactAttributes, callback: AsyncCallback
});
```
## contact.queryMyCard(deprecated)
## contact.queryMyCard(deprecated)
<sup>7+<sup>
queryMyCard(attrs: ContactAttributes, callback: AsyncCallback
<
Contact
>
): void
...
...
@@ -1137,7 +1137,7 @@ queryMyCard(context: Context, attrs?: ContactAttributes): Promise<Contact>
});
```
## contact.queryMyCard(deprecated)
## contact.queryMyCard(deprecated)
<sup>7+<sup>
queryMyCard(attrs?: ContactAttributes): Promise
<
Contact
>
...
...
@@ -1172,7 +1172,7 @@ queryMyCard(attrs?: ContactAttributes): Promise<Contact>
```
## contact.selectContact
## contact.selectContact
<sup>7+<sup>
selectContact(callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -1199,7 +1199,7 @@ selectContact(callback: AsyncCallback<Array<Contact>>): void
```
## contact.selectContact
## contact.selectContact
<sup>7+<sup>
selectContact(): Promise
<
Array
<
Contact
>>
...
...
@@ -1271,7 +1271,7 @@ queryContact(context: Context, key: string, callback: AsyncCallback<Contact
});
```
## contact.queryContact(deprecated)
## contact.queryContact(deprecated)
<sup>7+<sup>
queryContact(key: string, callback: AsyncCallback
<
Contact
>
): void
...
...
@@ -1352,7 +1352,7 @@ queryContact(context: Context, key: string, holder: Holder, callback: AsyncCall
});
```
## contact.queryContact(deprecated)
## contact.queryContact(deprecated)
<sup>7+<sup>
queryContact(key: string, holder: Holder, callback: AsyncCallback
<
Contact
>
): void
...
...
@@ -1435,7 +1435,7 @@ queryContact(context: Context, key: string, attrs: ContactAttributes, callback
});
```
## contact.queryContact(deprecated)
## contact.queryContact(deprecated)
<sup>7+<sup>
queryContact(key: string, attrs: ContactAttributes, callback: AsyncCallback
<
Contact
>
): void
...
...
@@ -1521,7 +1521,7 @@ queryContact(context: Context, key: string, holder: Holder, attrs: ContactAttri
});
```
## contact.queryContact(deprecated)
## contact.queryContact(deprecated)
<sup>7+<sup>
queryContact(key: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
<
Contact
>
): void
...
...
@@ -1616,7 +1616,7 @@ queryContact(context: Context, key: string, holder?: Holder, attrs?: ContactAtt
});
```
## contact.queryContact(deprecated)
## contact.queryContact(deprecated)
<sup>7+<sup>
queryContact(key: string, holder?: Holder, attrs?: ContactAttributes): Promise
<
Contact
>
...
...
@@ -1701,7 +1701,7 @@ queryContacts(context: Context, callback: AsyncCallback<Array<Contact>
});
```
## contact.queryContacts(deprecated)
## contact.queryContacts(deprecated)
<sup>7+<sup>
queryContacts(callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -1779,7 +1779,7 @@ queryContacts(context: Context, holder: Holder, callback: AsyncCallback<Arra
});
```
## contact.queryContacts(deprecated)
## contact.queryContacts(deprecated)
<sup>7+<sup>
queryContacts(holder: Holder, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -1860,7 +1860,7 @@ queryContacts(context: Context, attrs: ContactAttributes, callback: AsyncCallba
});
```
## contact.queryContacts(deprecated)
## contact.queryContacts(deprecated)
<sup>7+<sup>
queryContacts(attrs: ContactAttributes, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -1944,7 +1944,7 @@ queryContacts(context: Context, holder: Holder, attrs: ContactAttributes, callb
});
```
## contact.queryContacts(deprecated)
## contact.queryContacts(deprecated)
<sup>7+<sup>
queryContacts(holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -2036,7 +2036,7 @@ queryContacts(context: Context, holder?: Holder, attrs?: ContactAttributes): Pr
});
```
## contact.queryContacts(deprecated)
## contact.queryContacts(deprecated)
<sup>7+<sup>
queryContacts(holder?: Holder, attrs?: ContactAttributes): Promise
<
Array
<
Contact
>>
...
...
@@ -2122,7 +2122,7 @@ queryContactsByPhoneNumber(context: Context, phoneNumber: string, callback: Asy
});
```
## contact.queryContactsByPhoneNumber(deprecated)
## contact.queryContactsByPhoneNumber(deprecated)
<sup>7+<sup>
queryContactsByPhoneNumber(phoneNumber: string, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -2203,7 +2203,7 @@ queryContactsByPhoneNumber(context: Context, phoneNumber: string, holder: Holde
});
```
## contact.queryContactsByPhoneNumber(deprecated)
## contact.queryContactsByPhoneNumber(deprecated)
<sup>7+<sup>
queryContactsByPhoneNumber(phoneNumber: string, holder: Holder, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -2286,7 +2286,7 @@ queryContactsByPhoneNumber(context: Context, phoneNumber: string, attrs: Contac
});
```
## contact.queryContactsByPhoneNumber(deprecated)
## contact.queryContactsByPhoneNumber(deprecated)
<sup>7+<sup>
queryContactsByPhoneNumber(phoneNumber: string, attrs: ContactAttributes, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -2372,7 +2372,7 @@ queryContactsByPhoneNumber(context: Context, phoneNumber: string, holder: Holde
});
```
## contact.queryContactsByPhoneNumber(deprecated)
## contact.queryContactsByPhoneNumber(deprecated)
<sup>7+<sup>
queryContactsByPhoneNumber(phoneNumber: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -2467,7 +2467,7 @@ queryContactsByPhoneNumber(context: Context, phoneNumber: string, holder?: Hold
});
```
## contact.queryContactsByPhoneNumber(deprecated)
## contact.queryContactsByPhoneNumber(deprecated)
<sup>7+<sup>
queryContactsByPhoneNumber(phoneNumber: string, holder?: Holder, attrs?: ContactAttributes): Promise
<
Array
<
Contact
>>
...
...
@@ -2554,7 +2554,7 @@ queryContactsByEmail(context: Context, email: string, callback: AsyncCallback&l
});
```
## contact.queryContactsByEmail(deprecated)
## contact.queryContactsByEmail(deprecated)
<sup>7+<sup>
queryContactsByEmail(email: string, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -2634,7 +2634,7 @@ queryContactsByEmail(context: Context, email: string, holder: Holder, callback:
});
```
## contact.queryContactsByEmail(deprecated)
## contact.queryContactsByEmail(deprecated)
<sup>7+<sup>
queryContactsByEmail(email: string, holder: Holder, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -2717,7 +2717,7 @@ queryContactsByEmail(context: Context, email: string, attrs: ContactAttributes,
});
```
## contact.queryContactsByEmail(deprecated)
## contact.queryContactsByEmail(deprecated)
<sup>7+<sup>
queryContactsByEmail(email: string, attrs: ContactAttributes, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -2803,7 +2803,7 @@ queryContactsByEmail(context: Context, email: string, holder: Holder, attrs: Co
});
```
## contact.queryContactsByEmail(deprecated)
## contact.queryContactsByEmail(deprecated)
<sup>7+<sup>
queryContactsByEmail(email: string, holder: Holder, attrs: ContactAttributes, callback: AsyncCallback
<
Array
<
Contact
>>
): void
...
...
@@ -2898,7 +2898,7 @@ queryContactsByEmail(context: Context, email: string, holder?: Holder, attrs?:
});
```
## contact.queryContactsByEmail(deprecated)
## contact.queryContactsByEmail(deprecated)
<sup>7+<sup>
queryContactsByEmail(email: string, holder?: Holder, attrs?: ContactAttributes): Promise
<
Array
<
Contact
>>
...
...
@@ -2984,7 +2984,7 @@ queryGroups(context: Context, callback: AsyncCallback<Array<Group>>
});
```
## contact.queryGroups(deprecated)
## contact.queryGroups(deprecated)
<sup>7+<sup>
queryGroups(callback: AsyncCallback
<
Array
<
Group
>>
): void
...
...
@@ -3062,7 +3062,7 @@ queryGroups(context: Context, holder: Holder, callback: AsyncCallback<Array&
});
```
## contact.queryGroups(deprecated)
## contact.queryGroups(deprecated)
<sup>7+<sup>
queryGroups(holder: Holder, callback: AsyncCallback
<
Array
<
Group
>>
): void
...
...
@@ -3149,7 +3149,7 @@ queryGroups(context: Context, holder?: Holder): Promise<Array<Group>&g
});
```
## contact.queryGroups(deprecated)
## contact.queryGroups(deprecated)
<sup>7+<sup>
queryGroups(holder?: Holder): Promise
<
Array
<
Group
>>
...
...
@@ -3231,7 +3231,7 @@ queryHolders(context: Context, callback: AsyncCallback<Array<Holder>&g
});
```
## contact.queryHolders(deprecated)
## contact.queryHolders(deprecated)
<sup>7+<sup>
queryHolders(callback: AsyncCallback
<
Array
<
Holder
>>
): void
...
...
@@ -3308,7 +3308,7 @@ queryHolders(context: Context ): Promise<Array<Holder>>
});
```
## contact.queryHolders(deprecated)
## contact.queryHolders(deprecated)
<sup>7+<sup>
queryHolders(): Promise
<
Array
<
Holder
>>
...
...
@@ -3381,7 +3381,7 @@ queryKey(context: Context, id: number, callback: AsyncCallback<string>):
});
```
## contact.queryKey(deprecated)
## contact.queryKey(deprecated)
<sup>7+<sup>
queryKey(id: number, callback: AsyncCallback
<
string
>
): void
...
...
@@ -3461,7 +3461,7 @@ queryKey(context: Context, id: number, holder: Holder, callback: AsyncCallback&
});
```
## contact.queryKey(deprecated)
## contact.queryKey(deprecated)
<sup>7+<sup>
queryKey(id: number, holder: Holder, callback: AsyncCallback
<
string
>
): void
...
...
@@ -3550,7 +3550,7 @@ queryKey(context: Context, id: number, holder?: Holder): Promise<string>
});
```
## contact.queryKey(deprecated)
## contact.queryKey(deprecated)
<sup>7+<sup>
queryKey(id: number, holder?: Holder): Promise
<
string
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录