AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones de contacto (Lotus Notes o Android/iPhone/iPad)
  • 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 sources (or accounts) of the contacts saved on the device.
Example
// Lists the Google accounts of the phone
arrSource is array of ContactSource = ContactListSource()
IF NOT ErrorOccurred THEN
FOR EACH ASource OF arrSource
IF ASource.Type = "com.google" THEN
// Process ...
END
END
END
// Initialize the LOOP_Sources looper
// Lists the sources
garrContactSource = ContactListSource()
 
// Browse the sources
FOR EACH ASource OF garrContactSource
LooperAddLine(LOOP_Sources, ASource.Name, GiveSourceType(ASource.Type))
END
Syntax
<Result> = ContactListSource()
<Result>: Array of ContactSource variables
Array of ContactSource variables initialized with the list of sources (or accounts) for the contacts saved on the device.
If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo.
Remarks
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
- ...
Component: wd290android.aar
Versión mínima requerida
  • Versión 17
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/06/2023

Señalar un error o enviar una sugerencia | Ayuda local