Contact
所有的联系人(好友)都会被封装成Contact 类实例
Contact
contact.say(textOrContactOrFileOrUrl) ⇒ Promise
Promisecontact.name() ⇒ string
stringcontact.alias(newAlias) ⇒ Promise
Promisecontact.friend() ⇒ boolean | null
boolean | nullcontact.type() ⇒ ContactType.Unknown | ContactType.Personal | ContactType.Official
ContactType.Unknown | ContactType.Personal | ContactType.Officialcontact.gender() ⇒ ContactGender.Unknown | ContactGender.Male | ContactGender.Female
ContactGender.Unknown | ContactGender.Male | ContactGender.Femalecontact.province() ⇒ string | null
string | nullcontact.city() ⇒ string | null
string | nullcontact.avatar() ⇒ Promise
Promisecontact.sync() ⇒ Promise
Promisecontact.self() ⇒ boolean
booleanContact.find(query) ⇒ Promise
PromiseContact.findAll([queryArg]) ⇒ Promise
Promise定义
类型定义
ContactQueryFilter
Last updated
Was this helpful?