@capgo/capacitor-accelerometer 7.1.3 → 7.1.5
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
|
@@ -9,7 +9,17 @@
|
|
|
9
9
|
|
|
10
10
|
Access raw accelerometer measurements across iOS, Android, and the Web.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
## Why Capacitor Accelerometer?
|
|
13
|
+
|
|
14
|
+
The only **free** and **maintained** Capacitor plugin for accelerometer access. Other plugins are either paid or no longer updated. This plugin provides:
|
|
15
|
+
|
|
16
|
+
- **Up-to-date implementation** - Uses the latest APIs across all platforms
|
|
17
|
+
- **Consistent JavaScript API** - Same interface as popular paid alternatives
|
|
18
|
+
- **Cross-platform** - Works on iOS, Android, and Web
|
|
19
|
+
- **Permission handling** - Built-in permission management
|
|
20
|
+
- **Real-time streaming** - Listen to continuous accelerometer updates
|
|
21
|
+
|
|
22
|
+
Perfect for fitness apps, games, gesture detection, and motion-based interfaces.
|
|
13
23
|
|
|
14
24
|
## Documentation
|
|
15
25
|
|
|
@@ -15,7 +15,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
15
15
|
@CapacitorPlugin(name = "CapacitorAccelerometer")
|
|
16
16
|
public class CapacitorAccelerometerPlugin extends Plugin implements SensorEventListener {
|
|
17
17
|
|
|
18
|
-
private final String pluginVersion = "7.1.
|
|
18
|
+
private final String pluginVersion = "7.1.5";
|
|
19
19
|
private static final String PERMISSION_GRANTED = "granted";
|
|
20
20
|
private static final String PERMISSION_DENIED = "denied";
|
|
21
21
|
|
|
@@ -4,7 +4,7 @@ import Foundation
|
|
|
4
4
|
|
|
5
5
|
@objc(CapacitorAccelerometerPlugin)
|
|
6
6
|
public class CapacitorAccelerometerPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
7
|
-
private let pluginVersion: String = "7.1.
|
|
7
|
+
private let pluginVersion: String = "7.1.5"
|
|
8
8
|
public let identifier = "CapacitorAccelerometerPlugin"
|
|
9
9
|
public let jsName = "CapacitorAccelerometer"
|
|
10
10
|
public let pluginMethods: [CAPPluginMethod] = [
|