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.
インストール
「インストール」のセクションbun add @capgo/capacitor-mutebunx cap syncインポート
「インポート」のセクションimport { Mute } from '@capgo/capacitor-mute';API オーバーヴィュー
API オーバーヴィューのセクションデバイスのミュートスイッチが有効になっているかどうかを確認します。
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
タイプ リファレンスのセクションのタイトル “MuteResponse”ミュート状態の確認から得られたレスポンス
export interface MuteResponse { /** True if device is muted, false otherwise */ value: boolean;}ソース オブ トゥース
ソース オブ トゥースのセクションこのページはプラグインから生成されています。 src/definitions.ts.再度、上流の公開APIが変更された場合に、syncを実行してください。
Getting Startedから続けてください
Getting Startedから続けてくださいCapgoを使用している場合 Getting Started を使用してダッシュボードとAPIの操作を計画する場合、APIを接続してください。 @capgo/capacitor-mute @capgo/capacitor-muteのネイティブ機能の実装については、capgo Overview @API/__CAPGO_KEEP_1__-muteの実装詳細については、API Overview for the implementation detail in API Overview, Capgoの概要です。 __CAPGO_KEEP_0__の実装詳細についてはIntroductionを参照してください。 API Keys API Keysの実装詳細については、API Keysを参照してください。 Devices __CAPGO_KEEP_0__の実装詳細についてはDevicesを参照してください。