コンテンツにスキップ

@capgo/capacitor-pretty-toast

iOS、Android、Webでネイティブな表示の通知を表示し、キュー、更新、動作、アイコン、プロミス状態をサポートします。

@capgo/capacitor-pretty-toast ネイティブファーストのトースト通知用の __CAPGO_KEEP_0__ を提供します。 __CAPGO_KEEP_1__ アプリではネイティブオーバーレイをiOSとAndroidで、WebではDOMレンダラーを使用します。 toast.* API for native-first toast notifications in Capacitor apps. It renders native overlays on iOS and Android and a DOM renderer on Web.

__CAPGO_KEEP_0__

外部デバイス上のアニメーションPretty Toastのデモ
トースト通知のフロー
  • toast.show - 完全なconfigオブジェクトからカスタムトーストを表示します。
  • toast.success, toast.error, toast.info, toast.warning - タイトルとオプションのconfigを持つ一般的な意味のあるトーストを表示します。
  • toast.loading - 持続的なローディングトーストを表示します。
  • toast.update - 既存のトーストを更新します。
  • toast.promise - ローディング、成功、エラーの状態でPromiseを追跡します。
  • toast.dismiss そして toast.dismissAll - 一つのトーストを削除するか、キューをクリアします。
メソッド説明
toast.show(config, options?)フル表示のトーストを表示します。 ToastConfig.
toast.success(title, config?, options?)成功のトーストを表示します。
toast.error(title, config?, options?)エラーのトーストを表示します。
toast.info(title, config?, options?)情報のトーストを表示します。
toast.warning(title, config?, options?)警告のトーストを表示します。
toast.loading(title, config?, options?)デフォルトで自動で消去されないローディングトーストを表示します。
toast.update(id, partial)既存のトーストを更新します。
toast.promise(promise, messages)ローディング状態を表示し、成功またはエラーの更新に移行します。
toast.dismiss(id?)アクティブなトーストまたは1つのトーストを閉じます。
toast.dismissAll()すべての表示およびキューされたトーストを閉じます。

このリファレンスは src/definitions.ts in capacitor-pretty-toast.

Capgoを使用している場合 @capgo/capacitor-pretty-toast native プラグインの作業を計画するには、{0}に接続してください。 Capgo プラグイン ディレクトリ for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, プラグインの追加または更新 {0}の {1}の実装詳細について Ionic Enterprise プラグインの代替 {0}の製品ワークフローについて、そして Capgo Native Builds for the product workflow in Capgo Native Builds.