public class ContactAttributes extends Object
You create a ContactAttributes object, set the attributes, and pass it to a query method.
The method returns the Contact object matching the attributes.
SystemCapability.SysAppComponents#CONTACT| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
ContactAttributes.Attribute |
Enumerates contact attributes.
|
| 构造器 | 说明 |
|---|---|
ContactAttributes() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
add(ContactAttributes.Attribute attr) |
Adds attributes of the contact to be queried.
|
void |
setAttributes(Set<ContactAttributes.Attribute> attributes) |
Set attributes of the contact to be queried.
|
public void add(ContactAttributes.Attribute attr)
attr - Indicates the contact attributes. For the value range,
see ContactAttributes.Attribute.public void setAttributes(Set<ContactAttributes.Attribute> attributes)
attributes - Indicates the contact attributes.