From 52d91f23e48c5afd03348f9d38b4db8b92000a76 Mon Sep 17 00:00:00 2001 From: majshr <2586091503@qq.com> Date: Tue, 28 May 2024 02:55:28 +0000 Subject: [PATCH] update api/@ohos.contact.d.ts. Signed-off-by: majshr <2586091503@qq.com> --- api/@ohos.contact.d.ts | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/api/@ohos.contact.d.ts b/api/@ohos.contact.d.ts index 8f19e2216..9a6923764 100644 --- a/api/@ohos.contact.d.ts +++ b/api/@ohos.contact.d.ts @@ -52,20 +52,6 @@ declare namespace contact { * @deprecated since 10 * @useinstead contact.addContact#addContact */ - /** - * Creates a contact. - * - * @permission ohos.permission.WRITE_CONTACTS - * @param { Contact } contact - Indicates the contact information. - * @param { AsyncCallback } callback - Returns the contact ID (which can be obtained - * by {@link Contact#getId()}) if the creation is successful. returns {@link Contact#INVALID_CONTACT_ID} if the - * creation fails. - * @syscap SystemCapability.Applications.ContactsData - * @atomicservice - * @since 12 - * @deprecated since 10 - * @useinstead contact.addContact#addContact - */ function addContact(contact: Contact, callback: AsyncCallback): void; /** @@ -111,19 +97,6 @@ declare namespace contact { * @deprecated since 10 * @useinstead contact.addContact#addContact */ - /** - * Creates a contact. - * - * @permission ohos.permission.WRITE_CONTACTS - * @param { Contact } contact - Indicates the contact information. - * @returns { Promise } Returns the contact ID (which can be obtained by {@link Contact#getId()}) if the - * creation is successful. returns {@link Contact#INVALID_CONTACT_ID} if the creation fails. - * @syscap SystemCapability.Applications.ContactsData - * @atomicservice - * @since 12 - * @deprecated since 10 - * @useinstead contact.addContact#addContact - */ function addContact(contact: Contact): Promise; /**