Getting Started
インストールステップとフルマークダウンガイドを含むセットアッププロンプトをコピーしてください。
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-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-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. upstream の public API が変更された場合に再度 Sync を実行してください。
Getting Started から続けてください。
Getting Started から続けてください。Capacitor を使用している場合 Getting Started Capacitor を使用してダッシュボードと API の操作を計画する場合、Capacitor を接続してください。 Using @capgo/capacitor-native-market Using @capgo/capacitor-native-market API の概要 API の概要 Capacitor の導入 導入の実装詳細について API キー API キーに関する実装詳細について、 デバイス デバイスに関する実装詳細について。