ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Contact functions (Lotus Notes or Android/iPhone/iPad)
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Lists the device contacts corresponding to the specified criteria.
Example
// Refresh the contact list in the Looper control
LooperDeleteAll(LOOP_CONTACTS)
 
// Retrieve the list of contacts
IF EDT_Find <> "" THEN
garrContacts = ContactList(Null, contactLastName, EDT_Find)
ELSE
garrContacts = ContactList(Null)
END
 
// Add to the Looper control
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.
If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, 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:
contactCompanyFilter on the companies.
contactEmailFilter on the Email addresses.
contactFirstNameFilter on the first names.
contactLastNameFilter on the family names.
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.
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
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
- ...
Business / UI classification: Business Logic
Component: wd290android.aar
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help