@capgo/capacitor-volume-buttons 8.1.2 → 8.1.3
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,11 +1,27 @@
|
|
|
1
1
|
# @capgo/capacitor-volume-buttons
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
React to the hardware volume buttons in your Capacitor app, to take a photo, turn a page or trigger any action.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_volume_buttons"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-volume-buttons" 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>: 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_volume_buttons">➡️ 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_volume_buttons">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-volume-buttons/main/assets/github-social-preview.png" alt="@capgo/capacitor-volume-buttons for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **Button events**: the `volumeButtonPressed` listener reports `up` or `down`.
|
|
21
|
+
- **iOS**: watches the audio session output volume.
|
|
22
|
+
- **Android**: listens for volume key events.
|
|
23
|
+
- **Clean up**: `removeAllListeners()` removes your listeners. Native monitoring stops when the plugin instance is destroyed.
|
|
24
|
+
- **Platforms**: iOS and Android. Not available on web.
|
|
9
25
|
|
|
10
26
|
## Documentation
|
|
11
27
|
|
|
@@ -11,7 +11,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
11
11
|
@CapacitorPlugin(name = "VolumeButtons")
|
|
12
12
|
public class VolumeButtonsPlugin extends Plugin {
|
|
13
13
|
|
|
14
|
-
private final String pluginVersion = "8.1.
|
|
14
|
+
private final String pluginVersion = "8.1.3";
|
|
15
15
|
|
|
16
16
|
@Override
|
|
17
17
|
public void load() {
|
|
@@ -19,7 +19,7 @@ private extension MPVolumeView {
|
|
|
19
19
|
|
|
20
20
|
@objc(VolumeButtonsPlugin)
|
|
21
21
|
public class VolumeButtonsPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
22
|
-
private let pluginVersion: String = "8.1.
|
|
22
|
+
private let pluginVersion: String = "8.1.3"
|
|
23
23
|
public let identifier = "VolumeButtonsPlugin"
|
|
24
24
|
public let jsName = "VolumeButtons"
|
|
25
25
|
public let pluginMethods: [CAPPluginMethod] = [
|