はじめよう
このプラグインのフルマークダウンガイドとインストールステップを含むセットアッププロンプトをコピーできます。
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.
インストール
インストール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
オープンストアリスト画面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
開発者ページを開きます。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」を使用してダッシュボードと__CAPGO_KEEP_0__の作業を計画している場合、__CAPGO_KEEP_0__を 「@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-native-market」を使用して 「@API/__CAPGO_KEEP_1__-native-market」のネイティブ機能について 「@capgo/capacitor-native-market」のcapgoの概要について 「@capgo/capacitor-native-market」のcapgoの実装詳細について 「@API/__CAPGO_KEEP_1__-native-market」のAPIの概要について 「@API/__CAPGO_KEEP_1__-native-market」のAPIの実装詳細について [ 概要 API キー API キー Devices デバイス