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

flutter_incoming_call のカバー
パッケージ詳細v0.1.2

flutter_incoming_call

Flutterアプリで着信通話を表示するためのFlutterプラグイン!

AndroidiOS
30日間ダウンロード
38
いいね数
43
Pub ポイント
140

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

flutter pub add flutter_incoming_call

パッケージ概要

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

Flutterプラグインで、AndroidおよびiOSデバイス上で着信通話インターフェースを表示できるようにします。開発者はカスタム通話UIを作成し、通話状態を管理し、システムレベルの統合により着信通話を処理できます。このプラグインは、VoIPやテレヘルスアプリケーションなどリアルタイム通信機能が必要なアプリ向けに設計されています。両方のオペレーティングシステムで信頼性の高いパフォーマンスとユーザー体験を確保するために、ネイティブプラットフォーム機能を活用しています。

用途

  • VoIP通話アプリ
  • テレヘルスプラットフォーム
  • リアルタイム通信サービス
  • カスタムコールインターフェースの実装
  • 緊急警報システム

主な機能

  • ネイティブ着信UIのサポート
  • クロスプラットフォーム対応の Android および iOS
  • 状態管理を呼び出す
  • システムレベルの呼び出し処理
  • カスタマイズ可能な通話画面デザイン

適している対象

  • VoIPアプリケーションを開発する開発者
  • リアルタイム通話通知が必要なアプリ
  • 医療または緊急対応ソフトウェア
  • モバイル通信プラットフォーム

注意事項

  • ネイティブプラットフォームの権限が必要です
  • バックグラウンド実行のための追加構成が必要になる場合があります
  • 実際の電話通話ではなく、通話シミュレーションに限定
  • デバイス固有の動作に依存します
  • 従来の電話通話ルーティングには適していません

元の README

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

flutter_incoming_call

A Flutter plugin to show incoming call in your Flutter app! Alpha version(not ready for production!)

Usage

To use this plugin:

  1. Configure android project: Just add to your manifest activity and receiver.
<activity
    android:name="com.github.alezhka.flutter_incoming_call.IncomingCallActivity"
    android:theme="@style/Theme.AppCompat"
    android:screenOrientation="portrait"
    android:showOnLockScreen="true">
    <intent-filter>
        <action android:name="com.github.alezhka.flutter_incoming_call.activity.ACTION_INCOMING_CALL" />
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
</activity>

<receiver android:name="com.github.alezhka.flutter_incoming_call.CallBroadcastReceiver"
    android:enabled="true"
    android:exported="false"/>
  1. Configure Flutter plugin:
FlutterIncomingCall.configure(
    appName: 'example_incoming_call',
    duration: 30000,
    android: ConfigAndroid(
        vibration: true,
        ringtonePath: 'default',
        channelId: 'calls',
        channelName: 'Calls channel name',
        channelDescription: 'Calls channel description',
    ),
    ios: ConfigIOS(
        iconName: 'AppIcon40x40',
        ringtonePath: null,
        includesCallsInRecents: false,
        supportsVideo: true,
        maximumCallGroups: 2,
        maximumCallsPerCallGroup: 1,
    )
)
  1. Listen events:
FlutterIncomingCall.onEvent.listen((event) {
    if(event is CallEvent) { // Android | IOS
    } else if(event is HoldEvent) { // IOS
    } else if(event is MuteEvent) { // IOS
    } else if(event is DmtfEvent) { // IOS
    } else if(event is AudioSessionEvent) { // IOS
    }
});
  1. Call api:
FlutterIncomingCall.displayIncomingCall(String uid, String name, String avatar, String handle, String type, bool isVideo);
FlutterIncomingCall.endCall(String uuid);
FlutterIncomingCall.endAllCalls();

Demo

ios ios (Lockscreen) Android Android (Lockscreen)

Example

Check out the example in the example project folder for a working example.

カテゴリー

ソースリポジトリ

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

データはまだありません。