findContactByPhoneNumber

fun Collection<Contact>.findContactByPhoneNumber(phoneNumber: String): Contact?

Finds a contact with the specified phoneNumber.

Return

The first matching contact or null if none of the contacts in this collection has the specified phone number.


fun LiveData<IviContactsDataSource>.findContactByPhoneNumber(phoneNumber: LiveData<String?>): LiveData<Contact?>

Finds a contact with the specified phoneNumber.

Return

The first matching Contact or null if none of the contacts in this collection has the specified phone number.