Skip to main content
Back to plugins
@capgo/capacitor-mute
Tutorial
by github.com/Cap-go

Mute

Detect device mute switch state for iOS devices to handle audio playback appropriately

Guide

Tutorial on Mute

Using @capgo/capacitor-mute

Capacitor Mute Plugin for detecting device mute status.

Install

bun add @capgo/capacitor-mute
bunx cap sync

What This Plugin Exposes

  • isMuted - Check if the device mute switch is enabled.

Example Usage

isMuted

Check if the device mute switch is enabled.

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

Full Reference