findContactByContactId

fun LiveData<IviContactsDataSource>.findContactByContactId(contactId: LiveData<ContactId?>, queryFlags: EnumSet<ContactsDataSourceQuery.ContactQueryFlags> = EnumSet.noneOf(ContactQueryFlags::class.java)): LiveData<Contact?>

Finds a contact with the specified contactId. Flags from ContactQueryFlags can be set in queryFlags to refine how the results should be returned. See ContactQueryFlags for available flags.

Return

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