__CAPGO_KEEP_1__

Getting Started

GitHub

AI-Assisted Setupを使用してプラグインをインストールできます。AIツールにCapgoスキルを追加するには、以下のコマンドを実行してください。

ターミナル画面
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins

次に、以下の質問を使用してください。

Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-pretty-toast` plugin in my project.

Manual Setupを使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。

ターミナル画面
npm install @capgo/capacitor-pretty-toast
npx cap sync
import { toast } from '@capgo/capacitor-pretty-toast';
toast.success('Saved', {
message: 'Your changes are ready.',
});
const id = toast.loading('Uploading', {
message: 'Waiting for the server response.',
});
setTimeout(() => {
toast.update(id, {
title: 'Upload complete',
message: 'The file was stored successfully.',
icon: 'checkmark.circle.fill',
autoDismiss: true,
});
}, 1500);
await toast.promise(uploadFile(), {
loading: {
title: 'Uploading',
message: 'Keep the app open while the file is sent.',
},
success: 'Uploaded',
error: 'Upload failed',
});

使用 icon 記号名またはRAW SVG マークアップの場合:

toast.info('New message', {
icon: 'message.fill',
message: 'Open the inbox to reply.',
});

使用 iconSource URIのような画像の場合。絶対ファイルパスや https://, http://, file://, data:, blob:絶対ファイルパスや { uri }.

toast.show({
title: 'Profile updated',
message: 'Your avatar changed.',
iconSource: 'https://example.com/avatar.png',
});

iconSource 上記のものが優先されます。 icon.

Getting Startedから続けてください。

Getting Startedから続けてください。

Capgoを使用してネイティブプラグインの作業を計画している場合、Capgoを接続してください。 はじめに Getting Started Capgo プラグインディレクトリ Capgo製品ワークフロー向けに Capgo プラグインディレクトリ Capacitor プラグインは Capgo によって提供されます。 Capgoの実装詳細については、Capacitor プラグインによってCapgoで管理されます。 プラグインの追加または更新 Capgo製品ワークフロー向けに プラグインの追加または更新 イオニックエンタープライズプラグインの代替 Capgo製品ワークフロー向けに イオニックエンタープライズプラグインの代替、 Capgo ネイティブビルド Capgo製品ワークフロー向けに Capgo ネイティブビルド