!11599 【轻量级 PR】:update api/@ohos.contact.d.ts.

Merge pull request !11599 from majshr/N/A
This commit is contained in:
openharmony_ci 2024-05-29 12:11:19 +00:00 committed by Gitee
commit b5f224d628
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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<number> } 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<number>): 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<number> } 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<number>;
/**