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

ミュート

iOS デバイスのミュート スイッチの状態を検出して、適切な音再生を実行する

ガイド

マイクミュートのチュートリアル

デバイスでテスト

Download the Capgo app, then scan the QR code.

Mute プラグインのプレビュー QR code

@capgo/capacitor-mute を使用

Capacitor のミュート プラグイン

インストール

bun add @capgo/capacitor-mute
bunx cap sync

This プラグインは次の内容を公開します

  • isMuted - デバイスのミュート Switch が有効かどうかを確認します。

例の使用

isMuted

デバイスのミュート Switch が有効かどうかを確認します。

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

フル リファレンス

Keep going from Using @capgo/capacitor-mute

Capacitor-__CAPGO_KEEP_0__-muteを使用している場合 Using @capgo/capacitor-mute Capacitor-API-muteを使用してダッシュボードとAPIのオペレーションを計画する場合、Capacitor-API-muteと接続してください。 @capgo/capacitor-mute for the implementation detail in @capgo/capacitor-mute, Capacitor-__CAPGO_KEEP_0__-muteの概要についてはCapacitor-__CAPGO_KEEP_0__-muteの概要を参照してください。 概要 API Overview for the implementation detail in API Overview, 概要 for the implementation detail in Introduction, and API キー for the implementation detail in API キー。