# wx.chooseContact(Object object)
Start from base library version 2.8.0. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Not supported
Pull up your phone contacts and select contacts.
# parameter
# Object object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
success | function | no | Interface calls the successful callback function | |
fail | function | no | Interface calls failed callback functions | |
complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |
# object.success callback
# parameter
# Object object
attribute | type | Introductions |
---|---|---|
phoneNumber | string | Phone number. |
displayName | string | Contact Name |
phoneNumberList | string | All mobile phone numbers of the selected contact Android The system can only select the contact but not the specific phone number) |