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

パッケージ詳細v1.0.0

flutter_incall

iOS/Android 向の Flutter InCall Manager プラグイン。

30日間ダウンロード
31
いいね数
25
Pub ポイント
25

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

flutter pub add flutter_incall

パッケージ概要

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

Flutter InCall Manager は、Android および iOS 向けのクロスプラットフォームプラグインであり、Flutterアプリケーション内で通話機能を管理できるようにします。このプラグインは、着信および発信通話の処理、オーディオルートの管理、通話状態の監視など、デバイスレベルの通話制御にアクセスできます。ネイティブ通話APIと統合することで、シームレスな通話管理体験を提供し、VoIPアプリ、テレヘルスプラットフォーム、リアルタイム通話処理が必要な通信ツールに最適です。バックグラウンド通話操作をサポートし、両方のプラットフォームでシステムレベルの通話インターフェースと連携します。

用途

  • VoIP アプリケーション
  • テレヘルスプラットフォーム
  • リアルタイム通信ツール
  • コールセンター ソフトウェア
  • バックグラウンドコール管理

主な機能

  • ネイティブ呼び出し状態の監視
  • オーディオルート管理
  • 着信/発信通話の処理
  • クロスプラットフォーム対応(iOS/Android)
  • バックグラウンド呼び出し機能

適している対象

  • VoIPアプリを開発する開発者
  • リアルタイム通話制御を必要とするアプリ
  • モバイル通信プラットフォーム
  • ヘルスケアおよびリモートアシスタンスアプリ

注意事項

  • プラットフォーム固有の権限が必要です
  • iOS/Android 限定
  • バックグラウンド実行のための追加構成が必要になる場合があります
  • 完全な機能を実現するためにネイティブSDKに依存しています

元の README

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

flutter_incall

Port from react-native-incall-manager

  • Handling media-routes/sensors/events during a audio/video chat on Flutter

add to pubspec:

flutter_incall: ^1.0.0

import

import 'package:flutter_incall/flutter_incall.dart';

API:

Methods

Method android ios description
start({media: ?string, auto: ?boolean, ringback: ?string}) :smile: :smile: start incall manager.
ringback accept non-empty string or it won't play
default: {media:'audio', auto: true, ringback: ''}
stop({busytone: ?string}) :smile: :smile: stop incall manager
busytone accept non-empty string or it won't play
default: {busytone: ''}
turnScreenOn() :smile: :rage: force turn screen on
turnScreenOff() :smile: :rage: force turn screen off
setKeepScreenOn(enable: ?boolean) :smile: :smile: set KeepScreenOn flag = true or false
default: false
setSpeakerphoneOn(enable: ?boolean) :smile: :rage: toggle speaker ON/OFF once. but not force
default: false
setForceSpeakerphoneOn(flag: ?boolean) :smile: :smile: true -> force speaker on
false -> force speaker off
null -> use default behavior according to media type
default: null
setMicrophoneMute(enable: ?boolean) :smile: :rage: mute/unmute micophone
default: false
p.s. if you use webrtc, you can just use track.enabled = false to mute
async checkRecordPermission() :smile: :smile: check record permission without promt. return Promise. see about permission section above
async requestRecordPermission() :smile: :smile: request record permission to user. return Promise. see about permission section above
startRingtone(ringtone: string, ?vibrate_pattern: array, ?ios_category: string, ?seconds: number) :smile: :smile: play ringtone.
ringtone: 'DEFAULT' or 'BUNDLE'
vibrate_pattern: same as RN, but does not support repeat
ios_category: ios only, if you want to use specific audio category
seconds: android only, specify how long do you want to play rather than play once nor repeat. in sec.
stopRingtone() :smile: :smile: stop play ringtone if previous started via startRingtone()
stopRingback() :smile: :smile: stop play ringback if previous started via start()
setFlashOn(enable: ?boolean, brightness: ?number) :rage: :smile: set flash light on/off
async getIsWiredHeadsetPluggedIn() :rage: :smile: return wired headset plugged in state

Events

Event android ios description
'Proximity' :smile: :smile: proximity sensor detected changes.
data: {'isNear': boolean}
'WiredHeadset' :smile: :smile: fire when wired headset plug/unplug
data: {'isPlugged': boolean, 'hasMic': boolean, 'deviceName': string }
'NoisyAudio' :smile: :rage: see andriod doc.
data: null
'MediaButton' :smile: :rage: when external device controler pressed button. see android doc
data: {'eventText': string, 'eventCode': number }
'onAudioFocusChange' :smile: :rage: see andriod doc
data: {'eventText': string, 'eventCode': number }

カテゴリー

ソースリポジトリ

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

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