Aller directement au contenu

Démarrage

Fenêtre de terminal
bun add @capgo/native-market
bunx cap sync
import { NativeMarket } from '@capgo/native-market';

Lancer la page de liste d'applications sur Google Play (Android) ou sur l'App Store (iOS).

import { NativeMarket } from '@capgo/native-market';
// Open app in store
await NativeMarket.openStoreListing({
appId: 'com.example.app'
});
// Open app in specific country store (iOS only)
await NativeMarket.openStoreListing({
appId: 'com.example.app',
country: 'IT'
});

Rediriger directement vers la page d'un développeur sur Google Play.

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openDevPage({
devId: 'Google+LLC'
});

Section intitulée « openCollection »

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openCollection({
name: 'featured'
});

Lier les utilisateurs à la page Choix de l'éditeur sur le Play Store. Seulement Android.

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.openEditorChoicePage({
editorChoice: 'editorial_fitness_apps_us'
});

Rechercher le Play Store avec des termes de recherche personnalisés. Seulement Android.

import { NativeMarket } from '@capgo/native-market';
await NativeMarket.search({
terms: 'fitness apps'
});

Cette page est générée à partir du plugin’s src/definitions.tsRe-run la synchronisation lorsque les modifications publiques API changent en amont.