はじめから
インストールステップとこのプラグインのフルマークダウンガイドを含むセットアッププロンプトをコピーしてください。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-native-market`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/native-market/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
インストール
「インストール」のセクションCapgoのAIアシストセットアップを使用してプラグインをインストールできます。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-native-market` plugin in my project.Manual Setupを選択する場合は、以下のコマンドを実行して、下記のプラットフォーム固有の手順に従ってください。
npm install @capgo/capacitor-native-marketnpx cap syncインポート
「インポート」のセクションimport { NativeMarket } from '@capgo/capacitor-native-market';APIの概要
「APIの概要」のセクションopenStoreListing
「openStoreListing」のセクションPlay Store (Android)またはApp Store (iOS)でアプリのリスト画面を開きます。
import { NativeMarket } from '@capgo/capacitor-native-market';
// Open app in storeawait NativeMarket.openStoreListing({ appId: 'com.example.app'});
// Open app in specific country store (iOS only)await NativeMarket.openStoreListing({ appId: 'com.example.app', country: 'IT'});openDevPage
「openDevPage」セクションPlay Storeに開発者のページを直接リンクします。 Androidのみ。
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openDevPage({ devId: 'Google+LLC'});openCollection
「openCollection」セクションPlay Storeのコレクションまたはトップチャートにユーザーをリンクします。 Androidのみ。
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openCollection({ name: 'featured'});openEditorChoicePage
「openEditorChoicePage」セクションPlay Storeのエディターの選択ページにユーザーをリンクします。 Androidのみ。
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openEditorChoicePage({ editorChoice: 'editorial_fitness_apps_us'});search
「search」セクションPlay Storeでカスタム検索用語で検索します。 Androidのみ。
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.search({ terms: 'fitness apps'});真実の源
「真実の源」このページはプラグインの src/definitions.ts公開APIがアップストリームで変更されたら、再度同期を実行してください。
続けてGetting Started
「続けてGetting Started」あなたが Getting Started を使用してダッシュボードとAPIの作業を計画している場合、APIを Using @capgo/capacitor-native-market Using @capgo/capacitor-native-market のAPIの概要 実装詳細については API の概要を参照してください。 概要 実装詳細については概要を参照してください。 API キー 実装詳細については API キー、 デバイス 実装詳細についてはデバイスを参照してください。