getEmail

private fun getEmail(context: Context, contactId: String): List<String>(source)

Queries the ContactsContract.CommonDataKinds.Email table for all addresses associated with a contact.

Return

List of email address strings.

Parameters

context

Application context.

contactId

The raw ID of the contact.