@capgo/capacitor-mute 8.1.9 → 8.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,13 +1,27 @@
1
1
  # capacitor-mute
2
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-mute" alt="Capgo - Instant updates for Capacitor" /></a>
2
+
3
+ Find out if the device is muted before you play sounds in your Capacitor app, so you can show a visual cue instead of a silent alert.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_mute"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-mute" alt="Capgo - Instant updates for Capacitor" /></a>
3
6
 
4
7
  <div align="center">
5
- <h2><a href="https://capgo.app/?ref=plugin_mute"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
- <h2><a href="https://capgo.app/consulting/?ref=plugin_mute"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
8
+ <p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
9
+ <h2><a href="https://capgo.app/register/?ref=plugin_mute">➡️ Get started for free</a></h2>
10
+ <p>14-day unlimited free trial. No credit card required</p>
11
+ <p><a href="https://capgo.app/consulting/?ref=plugin_mute">Missing a feature? We'll build the plugin for you 💪</a></p>
7
12
  </div>
8
13
 
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-mute/main/assets/github-social-preview.png" alt="@capgo/capacitor-mute for Capacitor apps" width="300" />
16
+ </p>
17
+
18
+ ## Key features
9
19
 
10
- Detect if the mute switch is enabled/disabled on a device
20
+ - **One call**: `isMuted()` returns whether the device is muted.
21
+ - **iOS**: detects the hardware mute switch with AudioToolbox.
22
+ - **Android**: reads the ringer mode from `AudioManager`.
23
+ - **Lightweight**: no permissions needed.
24
+ - **Platforms**: iOS and Android. Not available on web.
11
25
 
12
26
  ## Documentation
13
27
 
@@ -11,7 +11,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
11
11
  @CapacitorPlugin(name = "Mute")
12
12
  public class MutePlugin extends Plugin {
13
13
 
14
- private final String pluginVersion = "8.1.9";
14
+ private final String pluginVersion = "8.1.10";
15
15
 
16
16
  @PluginMethod
17
17
  public void isMuted(PluginCall call) {
@@ -7,7 +7,7 @@ import Capacitor
7
7
  */
8
8
  @objc(MutePlugin)
9
9
  public class MutePlugin: CAPPlugin, CAPBridgedPlugin {
10
- private let pluginVersion: String = "8.1.9"
10
+ private let pluginVersion: String = "8.1.10"
11
11
  public let identifier = "MutePlugin"
12
12
  public let jsName = "Mute"
13
13
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-mute",
3
- "version": "8.1.9",
3
+ "version": "8.1.10",
4
4
  "description": "Detect if the mute switch is enabled/disabled on a device",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",