Getting Started
Copy prompt pengaturan dengan langkah instalasi dan panduan markdown lengkap untuk plugin ini.
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.
Instal
Judul Bagian “Instal”npm install @capgo/capacitor-native-marketnpx cap syncImpor
Judul Bagian “Impor”import { NativeMarket } from '@capgo/capacitor-native-market';API Pengenalan
Bab berjudul “API Pengenalan”openStoreListing
Bab berjudul “openStoreListing”Muat halaman daftar aplikasi di Play Store (Android) atau 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
Bab berjudul “openDevPage”Link langsung ke halaman pengembang di Play Store. Hanya Android.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openDevPage({ devId: 'Google+LLC'});openCollection
Bab berjudul “openCollection”Tautkan pengguna ke koleksi atau chart teratas di Play Store. Hanya Android.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openCollection({ name: 'featured'});openEditorChoicePage
Bagian berjudul “openEditorChoicePage”Linkkan pengguna ke halaman Editor’s choice di Play Store. Hanya untuk Android.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openEditorChoicePage({ editorChoice: 'editorial_fitness_apps_us'});search
Bagian berjudul “search”Cari di Play Store dengan istilah pencarian kustom. Hanya untuk Android.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.search({ terms: 'fitness apps'});Sumber Kebenaran
Bagian berjudul “Sumber Kebenaran”Halaman ini dihasilkan dari plugin’s.
Re-run sinkronisasi ketika publik __CAPGO_KEEP_0__ berubah di atas. src/definitions.ts. Re-run the sync when the public API changes upstream.
Bagian berjudul “Teruskan dari Getting Started”
Bagian berjudul “Teruskan dari Getting Started”If Anda menggunakan Getting Started untuk merencanakan dashboard dan API operasi, hubungkan dengan Using @capgo/capacitor-native-market untuk kemampuan asli di Using @capgo/capacitor-native-market, API Overview untuk detail implementasi di API Overview, Pendahuluan untuk detail implementasi di Pendahuluan, API Keys untuk detail implementasi di API Keys, dan Perangkat untuk detail implementasi di Perangkat.