![]() |
Essential Kit
|
The AddressBook class provides cross-platform interface to access the contact information. More...
Static Public Member Functions | |
static AddressBookContactsAccessStatus | GetContactsAccessStatus () |
Returns the current permission status provided to access the contact data. | |
static void | ReadContacts (ReadContactsOptions options, EventCallback< AddressBookReadContactsResult > callback) |
Once after getting the user permission, retrieves all the contact information saved in address book database. | |
Advanced Usage | |
static void | Initialize (AddressBookUnitySettings settings) |
[Advanced] Initializes the address book module with the given settings. This call is optional and only need to be called if you have custom settings to initialize this feature. | |
In iOS/Android platform, users can grant or deny access to contact data on a per-application basis. And the user is prompted only the first time ReadContacts(EventCallback<AddressBookReadContactsResult>) is requested; any subsequent calls use the existing permissions. You can provide custom usage description in Address Book settings of Essential Kit window.
|
static |
settings | The settings to be used for initialization. |
The settings configure the default image to be used for address book contacts.
References AddressBookUnitySettings.DefaultImage.
|
static |
To see different authorization status, see AddressBookContactsAccessStatus.
|
static |
options | The options to customize the retrieval of contacts. Can be created with ReadContactsOptions.Builder. |
callback | The delegate VoxelBusters.CoreLibrary.EventCallback<TResult> callback that will be executed after the operation has a result or error. |