メインコンテンツにジャンプ
プラグインに戻る
@capgo/capacitor-age-range
チュートリアル
@capgo/capacitor-age-range

年齢範囲

Google Play Age Signals (Android) と Apple DeclaredAgeRange (iOS) を使用したクロスプラットフォームの年齢範囲検出

ガイド

Tutorial on Age Range

Using @capgo/capacitor-age-range

Cross-platform age range detection plugin.

Install

bun add @capgo/capacitor-age-range
bunx cap sync

What This Plugin Exposes

  • requestAgeRange - Request the user's age range.

Example Usage

requestAgeRange

Request the user's age range.

import { AgeRange } from '@capgo/capacitor-age-range';

const result = await AgeRange.requestAgeRange({ ageGates: [13, 16, 18] });
if (result.status === 'SHARING') {
  console.log('Age range:', result.ageLower, '-', result.ageUpper);
}

Full Reference

Using @capgo/capacitor-age-range

If you are using Using @capgo/capacitor-age-range を使用して @capgo/capacitor-age-range の実装詳細については @capgo/capacitor-age-range Getting Started の実装詳細については Capgo プラグイン ディレクトリ の製品ワークフローについては Capgo プラグイン ディレクトリ Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and プラグインの追加または更新 プラグインの追加または更新の実装詳細について