getPhoneNumber

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

Queries the ContactsContract.CommonDataKinds.Phone table for all numbers associated with a contact.

Return

List of phone number strings.

Parameters

context

Application context.

contactId

The raw ID of the contact.