This functionality allows you to display a native contact picker UI to allow the user to select a contact. If you require a user selection of a contact then this is often the best, fastest and simplest solution.
You should listen for 4 potential events from the picker:
CONTACT_SELECTED: Dispatched when the user selected a contact
CONTACTPICKER_CANCEL: Dispatched if the user cancelled the picker
CONTACTPICKER_CLOSED: Dispatched after the picker is closed, this is dispatched after both a selected and a cancelled event
CONTACTPICKER_ERROR: Dispatched if there was an error showing the picker. The picker will not be displayed if this error event is dispatched.
Then you can respond to the selection in the event handlers: