mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
!11599 【轻量级 PR】:update api/@ohos.contact.d.ts.
Merge pull request !11599 from majshr/N/A
This commit is contained in:
commit
b5f224d628
27
api/@ohos.contact.d.ts
vendored
27
api/@ohos.contact.d.ts
vendored
@ -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>;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user