react-native-audio-api 0.11.0-nightly-52d0b79-20251216 → 0.11.0-nightly-dd83923-20251216

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.
@@ -10,83 +10,103 @@
10
10
  * @nolint
11
11
  */
12
12
 
13
- package com.swmansion.audioapi;
14
-
15
- import com.facebook.proguard.annotations.DoNotStrip;
16
- import com.facebook.react.bridge.Promise;
17
- import com.facebook.react.bridge.ReactApplicationContext;
18
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
19
- import com.facebook.react.bridge.ReactMethod;
20
- import com.facebook.react.bridge.ReadableArray;
21
- import com.facebook.react.bridge.ReadableMap;
22
- import com.facebook.react.turbomodule.core.interfaces.TurboModule;
23
- import javax.annotation.Nonnull;
24
-
25
- public abstract class NativeAudioAPIModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
26
- public static final String NAME = "AudioAPIModule";
27
-
28
- public NativeAudioAPIModuleSpec(ReactApplicationContext reactContext) {
29
- super(reactContext);
30
- }
31
-
32
- @Override
33
- public @Nonnull String getName() {
34
- return NAME;
35
- }
36
-
37
- @ReactMethod(isBlockingSynchronousMethod = true)
38
- @DoNotStrip
39
- public abstract boolean install();
40
-
41
- @ReactMethod(isBlockingSynchronousMethod = true)
42
- @DoNotStrip
43
- public abstract double getDevicePreferredSampleRate();
44
-
45
- @ReactMethod
46
- @DoNotStrip
47
- public abstract void setAudioSessionActivity(boolean enabled, Promise promise);
48
-
49
- @ReactMethod
50
- @DoNotStrip
51
- public abstract void setAudioSessionOptions(String category, String mode, ReadableArray options, boolean allowHaptics);
52
-
53
- @ReactMethod
54
- @DoNotStrip
55
- public abstract void disableSessionManagement();
56
-
57
- @ReactMethod
58
- @DoNotStrip
59
- public abstract void setLockScreenInfo(ReadableMap info);
60
-
61
- @ReactMethod
62
- @DoNotStrip
63
- public abstract void resetLockScreenInfo();
64
-
65
- @ReactMethod
66
- @DoNotStrip
67
- public abstract void enableRemoteCommand(String name, boolean enabled);
68
-
69
- @ReactMethod
70
- @DoNotStrip
71
- public abstract void observeAudioInterruptions(boolean enabled);
72
-
73
- @ReactMethod
74
- @DoNotStrip
75
- public abstract void activelyReclaimSession(boolean enabled);
76
-
77
- @ReactMethod
78
- @DoNotStrip
79
- public abstract void observeVolumeChanges(boolean enabled);
80
-
81
- @ReactMethod
82
- @DoNotStrip
83
- public abstract void requestRecordingPermissions(Promise promise);
84
-
85
- @ReactMethod
86
- @DoNotStrip
87
- public abstract void checkRecordingPermissions(Promise promise);
88
-
89
- @ReactMethod
90
- @DoNotStrip
91
- public abstract void getDevicesInfo(Promise promise);
92
- }
13
+ package com.swmansion.audioapi;
14
+
15
+ import com.facebook.proguard.annotations.DoNotStrip;
16
+ import com.facebook.react.bridge.Promise;
17
+ import com.facebook.react.bridge.ReactApplicationContext;
18
+ import com.facebook.react.bridge.ReactContextBaseJavaModule;
19
+ import com.facebook.react.bridge.ReactMethod;
20
+ import com.facebook.react.bridge.ReadableArray;
21
+ import com.facebook.react.bridge.ReadableMap;
22
+ import com.facebook.react.turbomodule.core.interfaces.TurboModule;
23
+ import javax.annotation.Nonnull;
24
+
25
+ public abstract class NativeAudioAPIModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
26
+ public static final String NAME = "AudioAPIModule";
27
+
28
+ public NativeAudioAPIModuleSpec(ReactApplicationContext reactContext) {
29
+ super(reactContext);
30
+ }
31
+
32
+ @Override
33
+ public @Nonnull String getName() {
34
+ return NAME;
35
+ }
36
+
37
+ @ReactMethod(isBlockingSynchronousMethod = true)
38
+ @DoNotStrip
39
+ public abstract boolean install();
40
+
41
+ @ReactMethod(isBlockingSynchronousMethod = true)
42
+ @DoNotStrip
43
+ public abstract double getDevicePreferredSampleRate();
44
+
45
+ @ReactMethod
46
+ @DoNotStrip
47
+ public abstract void setAudioSessionActivity(boolean enabled, Promise promise);
48
+
49
+ @ReactMethod
50
+ @DoNotStrip
51
+ public abstract void setAudioSessionOptions(String category, String mode, ReadableArray options, boolean allowHaptics);
52
+
53
+ @ReactMethod
54
+ @DoNotStrip
55
+ public abstract void disableSessionManagement();
56
+
57
+ @ReactMethod
58
+ @DoNotStrip
59
+ public abstract void observeAudioInterruptions(boolean enabled);
60
+
61
+ @ReactMethod
62
+ @DoNotStrip
63
+ public abstract void activelyReclaimSession(boolean enabled);
64
+
65
+ @ReactMethod
66
+ @DoNotStrip
67
+ public abstract void observeVolumeChanges(boolean enabled);
68
+
69
+ @ReactMethod
70
+ @DoNotStrip
71
+ public abstract void requestRecordingPermissions(Promise promise);
72
+
73
+ @ReactMethod
74
+ @DoNotStrip
75
+ public abstract void checkRecordingPermissions(Promise promise);
76
+
77
+ @ReactMethod
78
+ @DoNotStrip
79
+ public abstract void requestNotificationPermissions(Promise promise);
80
+
81
+ @ReactMethod
82
+ @DoNotStrip
83
+ public abstract void checkNotificationPermissions(Promise promise);
84
+
85
+ @ReactMethod
86
+ @DoNotStrip
87
+ public abstract void getDevicesInfo(Promise promise);
88
+
89
+ @ReactMethod
90
+ @DoNotStrip
91
+ public abstract void registerNotification(String type, String key, Promise promise);
92
+
93
+ @ReactMethod
94
+ @DoNotStrip
95
+ public abstract void showNotification(String key, ReadableMap options, Promise promise);
96
+
97
+ @ReactMethod
98
+ @DoNotStrip
99
+ public abstract void updateNotification(String key, ReadableMap options, Promise promise);
100
+
101
+ @ReactMethod
102
+ @DoNotStrip
103
+ public abstract void hideNotification(String key, Promise promise);
104
+
105
+ @ReactMethod
106
+ @DoNotStrip
107
+ public abstract void unregisterNotification(String key, Promise promise);
108
+
109
+ @ReactMethod
110
+ @DoNotStrip
111
+ public abstract void isNotificationActive(String key, Promise promise);
112
+ }
@@ -6,6 +6,8 @@ typedef struct objc_object NSURL;
6
6
  typedef struct objc_object AudioBufferList;
7
7
  #endif // __OBJC__
8
8
 
9
+ #include <memory>
10
+
9
11
  namespace audioapi {
10
12
 
11
13
  class AudioFileProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-audio-api",
3
- "version": "0.11.0-nightly-52d0b79-20251216",
3
+ "version": "0.11.0-nightly-dd83923-20251216",
4
4
  "description": "react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification",
5
5
  "bin": {
6
6
  "setup-rn-audio-api-web": "./scripts/setup-rn-audio-api-web.js"