パッケージ、リポジトリ、アプリカテゴリを検索

fast_contacts のカバー
パッケージ詳細v6.0.0

fast_contacts

デバイスの連絡先リストにアクセスするより高速な方法。適切な時間内に全連絡先リストを取得できます。

AndroidiOS
30日間ダウンロード
8万
いいね数
120
Pub ポイント
150

パッケージをインストール

flutter pub add fast_contacts

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

fast_contacts は、デバイスの連絡先リストにアクセスするための高パフォーマンスなソリューションを提供するFlutterパッケージです。開発者が全体の連絡先データベースを効率的に取得でき、従来のアプローチと比較してロード時間を大幅に短縮できます。シンプルさと高速性を意識して設計されており、AndroidおよびiOSアプリにシームレスに統合され、過度な遅延なく連絡先データを取得する信頼できる方法を提供します。メッセージングやソーシャルネットワーキングアプリなど、ユーザーの連絡先に迅速にアクセスが必要なアプリケーションに最適です。

用途

  • すべての連絡先をすばやく取得する
  • 連絡先検索機能の統合
  • 連絡先ピッカーインターフェースの構築
  • ユーザー接続機能の有効化
  • メッセージアプリの連絡先リストをサポート

主な機能

  • 迅速な連絡先検索
  • クロスプラットフォーム対応(Android および iOS)
  • シンプルな API インテグレーション
  • 効率的なメモリ使用
  • 連絡先を読み込む際の最小レイテンシ

適している対象

  • 連絡先ピッカーの実装
  • 迅速な連絡先アクセスを必要とするアプリ
  • ユーザーのオンボーディングと連絡先のインポート
  • ソーシャルまたはコミュニケーションプラットフォーム
  • パフォーマンスに敏感な連絡先操作

注意事項

  • Android および iOS で適切な権限が必要です
  • 大規模な連絡先データセットの処理が必要になる可能性があります
  • 基本連絡先情報(氏名、電話番号、メールアドレス)に限定
  • リアルタイム連絡先同期には適していません
  • ネイティブプラットフォーム連絡先APIに依存しています

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

fast_contacts

Version Likes Points Downloads

A much faster alternative to contacts_service and flutter_contact for reading the device's contact book.

This plugin was tuned to achieve optimal performance for fetching the whole list of contacts. Loading 1000 contacts with this plugin should take ~200ms or less depending on the device.

Usage

To use this plugin, add fast_contacts as a dependency in your pubspec.yaml file.

Permissions

Android

Add the following permission to your AndroidManifest.xml:

<uses-permission android:name="android.permission.READ_CONTACTS" />
iOS

Set the NSContactsUsageDescription in your Info.plist file

<key>NSContactsUsageDescription</key>
<string>Description of why you need the contacts permission.</string>

Note fast_contacts doesn't handle permissions. Use special plugins (like permission_handler) to ask for the permission before accessing contacts.

Available contact info

  • ID
  • Display name
  • Structured name (prefix, given name, middle name, family name, suffix)
  • Emails
  • Phones
  • Organization (company, department, job description)

Example

// Import package
import 'package:fast_contacts/fast_contacts.dart';

// Get all contacts
final contacts = await FastContacts.getAllContacts();

// Get single contact by ID
final contact = await FastContacts.getContact(contactId);

// Get contact's image (thumbnail)
final thumbnail = await FastContacts.getContactImage(contact.id);

// Get contact's image (full size)
final thumbnail = await FastContacts.getContactImage(contact.id, size: ContactImageSize.fullSize);

For a more complete usage example, see example project.

Performance

Loading 1000+ contacts (display name, structured name, phones, emails) at once takes ~200ms on both Android (Samsung Galaxy S8) and iOS (iPhone 8).

Android: Samsung Galaxy S8

iOS: iPhone 8

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト