Skip to content
This repository was archived by the owner on Apr 8, 2021. It is now read-only.
This repository was archived by the owner on Apr 8, 2021. It is now read-only.

Filtering contacts not available #12

Description

@ricavir11

Hi,

I'm using v1.0.5.
I'm not able to filter contacts like you mention in README.

var contacts = await Plugin.ContactService.CrossContactService.Current.GetContactListAsync(x=>x.Emails.Count > 0);

IContactService does not include any parameter for GetContactList methods :

namespace Plugin.ContactService { public interface IContactService { // Gets contacts in main thread !!!NOT RECOMMENDED IList<Contact> GetContactList(); // Gets contact in an awaitable background task Task<IList<Contact>> GetContactListAsync(); } }

Therefore, I'm obliged to get all contacts from phone before display... and this can take a lot of time when user as more than 500 contacts...

What can I do to enable filtering ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions