Usage
Address Book allows access to contacts on mobile devices.
This feature allows you to read the contacts saved on the mobile devices. All Address Book features can be accessible from AddressBook static class.
Before using any of the plugin's features, you need to import the namespace.
After importing the namespace, AddressBook class is available for accessing all of the Address Book's features.
Get Contacts Access Status
Get the contacts access status to see if it's allowed to access or denied by the user. GetContactAccessStatus method returns AddressBookContactsAccessStatus to identify if the status is NotDetermined/Restricted/Denied/Authorized.
Request Contact Access
Request the permission if the contact access is not determined yet. Calling RequestContactsAccess might show up a permission dialog on the mobile devices allowing the user to take an action.
You need to pass a callback method to get the status of the user action.
Read Contacts
Fetch the contacts available for the user by calling ReadContacts method. You need to pass a callback to get the list of IAddressBookContact instances.
Read Contacts with User Permission
If you don't need much control on the permission access status but just want to go ahead with reading the contacts, you can call ReadContactsWithUserPermission. This call requests the permission internally and returns the contacts details if authorized or an error if user deny the permission.
Last updated