はじめに
インストール手順とこのプラグインの完全なマークダウン ガイドを含む設定プロンプトをコピーする
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/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.
インストール
「インストール」のセクションbun add @capgo/native-marketbunx cap syncインポート
「インポート」のセクションimport { NativeMarket } from '@capgo/native-market';API の概要
API の概要というセクションopenStoreListing
「openStoreListing」というタイトルのセクションPlay Store (Android) または App Store (iOS) でアプリのリスト画面を開きます。
import { NativeMarket } from '@capgo/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/native-market';
await NativeMarket.openDevPage({ devId: 'Google+LLC'});openCollection
「openCollection」というタイトルのセクションPlay Store でのコレクションまたはトップチャートにユーザーをリンクします。 Android 限定
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openCollection({ name: 'featured'});openEditorChoicePage
「openEditorChoicePage」セクションPlay Storeのエディターの選択ページにユーザーをリンクします。Androidのみ。
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openEditorChoicePage({ editorChoice: 'editorial_fitness_apps_us'});search
「search」セクションPlay Storeでカスタム検索用語で検索します。Androidのみ。
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.search({ terms: 'fitness apps'});真実の源
「真実の源」セクションこのページはプラグインの src/definitions.tspublic APIがアップストリームで変更されたときに再度Syncを実行してください。