How to use the @ionic-native/contacts.ContactFindOptions function in @ionic-native/contacts

To help you get started, we’ve selected a few @ionic-native/contacts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zyra / ionic-native-playground / src / pages / contacts / contacts.ts View on Github external
findContacts() {
    const options = new ContactFindOptions();
    options.filter = 'John';
    options.multiple = true;
    options.hasPhoneNumber = true;
    const fields: ContactFieldType[] = ['name'];
    this.contacts.find(fields, options)
      .then(v => this.result = v)
      .catch(v => this.error = v);
  }

@ionic-native/contacts

Ionic Native - Native plugins for ionic apps

MIT
Latest version published 3 years ago

Package Health Score

73 / 100
Full package analysis

Similar packages