PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special cases
  • Required permissions
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Lists the device contacts corresponding to the specified criteria.
Note: This function can be used from Android 2.0.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 18
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Refresh the list of contacts
LooperDeleteAll(LOOP_CONTACTS)

// Retrieve the list of contacts
IF EDT_Find <> "" THEN
garrContacts = ContactList(Null, contactLastName, EDT_Find)
ELSE
garrContacts = ContactList(Null)
END

// Add into the looper
FOR EACH tContact OF garrContacts
IF tContact..DisplayedName <> "" THEN
LooperAddLine(LOOP_CONTACTS, tContact..DisplayedName, tContact)
END
END
Syntax
<Result> = ContactList([<Source> [, <Filter> [, <Lower Bound> [, <Upper Bound>]]]])
<Result>: Array of Contact variables
Array of Contact variables initialized with the list of contacts corresponding to the specified criteria.
The ErrorOccurred variable is set to True if an error occurs. To find out the error details, use ErrorInfo.
<Source>: Optional ContactSource variable
Name of ContactSource variable describing the source or the account for which the contacts must be listed.
If this parameter is set to NULL, the contacts of all the device sources will be taken into account.
<Filter>: Optional Integer constant
Property on which the list of contacts must be filtered:
contactEmailFilter on the Email addresses.
contactLastNameFilter on the family names.
contactFirstNameFilter on the first names.
contactCompanyFilter on the companies.
contactPhone
(Default value)
Filter on the phone numbers.
<Lower Bound>: Optional character string
Lower bound for the filter.
<Upper Bound>: Optional character string
Upper bound for the filter.
If this parameter is not specified, the upper bound corresponds to the value of <Lower Bound>.
Remarks

Special cases

To list the sources or the accounts with which the device contacts are synchronized, use ContactListSource.
AndroidAndroid Widget

Required permissions

The call to this function modifies the permissions required by the application.
Required permission: READ_CONTACTS
This permission allows the application to read the data of the user contacts.
Versions 22 and later
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
New in version 22
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Contacts
This feature allows the applications to access the contacts.
Related Examples:
WM Managing Contacts Cross-platform examples (WINDEV Mobile): WM Managing Contacts
[ + ] This example presents the management of contacts for Android et iOS.
It is used o:
- list the contacts found on the phone
- call the contacts
- send SMSs to the contacts
- ...
Components
Android wd230android.jar
Minimum required version
  • Version 17
Comments
Click [Add] to post a comment