Getting Started
このプラグインのインストール手順とマークダウンガイドを含むセットアッププロンプトをコピーします。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-mute`
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/mute/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.
Install
「インストール」のセクションAIアシストされたセットアップを使用してプラグインをインストールできます。AIツールに次のコマンドを使用して、Capgoスキルを追加します。
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins次に、以下のプロンプトを使用してください:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-mute` plugin in my project.Manual Setup を使用する場合は、以下のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください:
bun add @capgo/capacitor-mutebunx cap syncインポート
「インポート」のセクションimport { Mute } from '@capgo/capacitor-mute';API の概要
「API の概要」のセクションisMuted
「isMuted」のセクションデバイスのミュートスイッチが有効になっているかどうかを確認します。
import { Mute } from '@capgo/capacitor-mute';
const { value } = await Mute.isMuted();if (value) { console.log('Device is muted');} else { console.log('Device is not muted');}型の参照
「型の参照」のセクションMuteResponse
「ミュートステータス確認の応答」のセクションミュートステータス確認の応答
export interface MuteResponse { /** True if device is muted, false otherwise */ value: boolean;}真実の源
「真実の源」のセクションこのページはプラグインの設定から生成されています。 . upstream の __CAPGO_KEEP_0__ が変更された場合、public の再同期を実行してください。 src/definitions.ts. Re-run the sync when the public API changes upstream.
このページはプラグインの設定から生成されています。 . upstream の __CAPGO_KEEP_0__ が変更された場合、public の再同期を実行してください。
「Getting Started」から続けてくださいあなたは「を使用しています 「Getting Started」 ダッシュボードとAPIの操作を計画するには、を接続してください native capabilityのために@capgo/capacitor-mute native capabilityのために@capgo/capacitor-mute APIの概要 実装詳細のためにAPIの概要 導入 実装詳細のために導入 APIのキー 実装詳細のためにAPIのキー デバイス デバイスの実装詳細について