delta_contacts 1.2.0 copy "delta_contacts: ^1.2.0" to clipboard
delta_contacts: ^1.2.0 copied to clipboard

A Flutter plugin for accessing device contacts.

delta_contacts #

  • This plugin is used to get contacts from the device. Compatible with Android and iOS.

Getting Started #

import 'package:delta_contacts/delta_contacts.dart';

final deltaContacts = DeltaContacts();

final contacts = await deltaContacts.getContacts();

print(contacts);

Use history token to get the changes in contacts from the last time you synced. History token is timestamp in [millisecondsSinceEpoch] in Android and Contact Store History Token in iOS.

final contacts = await deltaContacts.getContacts(historyToken: historyToken);

Pick Contact #

Open the native contact picker and get the selected contact.

final contact = await deltaContacts.pickContact();

if (contact != null) {
  print(contact.name);
  print(contact.phoneNumbers);
  print(contact.emails);
}

Returns ContactData?null if the user cancels the picker.

1
likes
130
points
118
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for accessing device contacts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on delta_contacts

Packages that implement delta_contacts