コンテンツにジャンプ

はじめに

GitHub

Capgoの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-mute
bunx cap sync
import { Mute } from '@capgo/capacitor-mute';

デバイスのミュートスイッチが有効になっているかどうかを確認します。

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');
}

ミュートステータスのチェックから得られるレスポンス

export interface MuteResponse {
/** True if device is muted, false otherwise */
value: boolean;
}

真実の源

「真実の源」

このページはプラグインの src/definitions.tsAPIがアップストリームで変更された場合に、パブリック APIを再度同期してください。

Getting Startedから続けてください

「Getting Startedから続けてください」

あなたが Getting Started ダッシュボードとAPIの計画と実行を支援する場合、 Using @capgo/capacitor-mute Using @capgo/capacitor-mute API アサイン for the implementation detail in API Overview, バートエン バートエンにはアサインアサインを以彋してきる API Keys for the implementation detail in API Keys, and アサインディショナ アサインディショナにはアサインディショナを以彋してきる