@capgo/capacitor-mute 8.1.9 → 8.1.11
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
|
-
|
|
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
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: push fixes to your Capacitor users in minutes, build signed iOS and Android apps without a Mac, and roll back in one click.</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
|
-
|
|
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.
|
|
14
|
+
private final String pluginVersion = "8.1.11";
|
|
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.
|
|
10
|
+
private let pluginVersion: String = "8.1.11"
|
|
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.
|
|
3
|
+
"version": "8.1.11",
|
|
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",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@ionic/eslint-config": "^0.5.0",
|
|
71
71
|
"@ionic/prettier-config": "^4.0.0",
|
|
72
72
|
"@ionic/swiftlint-config": "^2.0.0",
|
|
73
|
-
"@types/node": "^
|
|
73
|
+
"@types/node": "^26.0.0",
|
|
74
74
|
"@typescript-eslint/eslint-plugin": "^8.70.0",
|
|
75
75
|
"@typescript-eslint/parser": "^8.70.0",
|
|
76
76
|
"eslint": "^10.0.0",
|