Mulai
Copas 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/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.
Pasang
Bagian berjudul “Pasang”bun add @capgo/native-marketbunx cap syncimport { NativeMarket } from '@capgo/native-market';API Ringkasan
Ringkasan berjudul “API Ringkasan”openStoreListing
Ringkasan berjudul “openStoreListing”Buka halaman daftar aplikasi di Play Store (Android) atau 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
Ringkasan berjudul “openDevPage”Tautan langsung ke halaman pengembang di Play Store. Hanya tersedia untuk Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openDevPage({ devId: 'Google+LLC'});openCollection
Ringkasan berjudul “openCollection”Tautan ke koleksi atau chart teratas di Play Store. Hanya tersedia untuk Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openCollection({ name: 'featured'});openEditorChoicePage
Bagian berjudul “openEditorChoicePage”Tautan pengguna ke halaman Editor’s choice di Play Store. Hanya untuk Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openEditorChoicePage({ editorChoice: 'editorial_fitness_apps_us'});search
Bagian berjudul “search”Cari di Play Store dengan istilah pencarian khusus. Hanya untuk Android.
import { NativeMarket } from '@capgo/native-market';
await NativeMarket.search({ terms: 'fitness apps'});Sumber Kebenaran
Bagian berjudul “Sumber Kebenaran”Halaman ini dihasilkan dari plugin’s. Re-run sinkronisasi ketika __CAPGO_KEEP_0__ publik berubah di atas. src/definitions.ts. Re-run the sync when the public API changes upstream.