ContactSelectionOptions和Contact增加标签@atomicservice

Signed-off-by: zhouhongli2023 <zhouhongli5@huawei.com>
This commit is contained in:
zhouhongli2023 2023-12-20 09:32:03 +00:00 committed by Gitee
parent 995b867cc7
commit 66bc9bc985
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

147
api/@ohos.contact.d.ts vendored
View File

@ -1404,6 +1404,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.Contacts
* @since 10
*/
/**
* ContactSelectionOptions Object
*
* @interface ContactSelectionOptions
* @syscap SystemCapability.Applications.Contacts
* @atomicservice
* @since 11
*/
interface ContactSelectionOptions {
/**
* Indicates the Single-select or multiple-select.
@ -1412,6 +1420,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.Contacts
* @since 10
*/
/**
* Indicates the Single-select or multiple-select.
*
* @type { ?boolean }
* @syscap SystemCapability.Applications.Contacts
* @atomicservice
* @since 11
*/
isMultiSelect?: boolean;
}
@ -1437,6 +1453,15 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates the contact invalid ID.
*
* @readonly
* @static
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
static readonly INVALID_CONTACT_ID: -1
/**
@ -1447,6 +1472,15 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates the contact ID.
*
* @type { ?number }
* @readonly
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
readonly id?: number
/**
@ -1457,6 +1491,15 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates the query key that identifies the contact.
*
* @type { ?string }
* @readonly
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
readonly key?: string
/**
@ -1466,6 +1509,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates the contact attributes.
*
* @type { ?ContactAttributes }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
contactAttributes?: ContactAttributes
/**
@ -1475,6 +1526,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates list of contact email addresses.
*
* @type { ?Email[] }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
emails?: Email[]
/**
@ -1484,6 +1543,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates an event (special date) of the contact.
*
* @type { ?Event[] }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
events?: Event[]
/**
@ -1493,6 +1560,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates a group of the contact.
*
* @type { ?Group[] }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
groups?: Group[]
/**
@ -1502,6 +1577,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates an IM address of the contact.
*
* @type { ?ImAddress[] }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
imAddresses?: ImAddress[]
/**
@ -1528,6 +1611,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates the contact portrait.
*
* @type { ?Portrait }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
portrait?: Portrait
/**
@ -1537,6 +1628,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates a postal address of the contact.
*
* @type { ?PostalAddress[] }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
postalAddresses?: PostalAddress[]
/**
@ -1546,6 +1645,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates a relation of the contact.
*
* @type { ?Relation[] }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
relations?: Relation[]
/**
@ -1555,6 +1662,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates a Session Initiation Protocol (SIP) address of the contact.
*
* @type { ?SipAddress[] }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
sipAddresses?: SipAddress[]
/**
@ -1564,6 +1679,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates a website of the contact.
*
* @type { ?Website[] }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
websites?: Website[]
/**
@ -1590,6 +1713,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates the contact nickname.
*
* @type { ?NickName }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
nickName?: NickName
/**
@ -1599,6 +1730,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates the contact note.
*
* @type { ?Note }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
note?: Note
/**
@ -1608,6 +1747,14 @@ declare namespace contact {
* @syscap SystemCapability.Applications.ContactsData
* @since 7
*/
/**
* Indicates organization information about the contact.
*
* @type { ?Organization }
* @syscap SystemCapability.Applications.ContactsData
* @atomicservice
* @since 11
*/
organization?: Organization
}