@qusaieilouti99/call-manager 0.1.22 → 0.1.23
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.
|
@@ -209,7 +209,7 @@ object CallEngine {
|
|
|
209
209
|
|
|
210
210
|
// --- Private helpers ---
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
fun playRingtone(context: Context) {
|
|
213
213
|
try {
|
|
214
214
|
Log.d(TAG, "Playing ringtone")
|
|
215
215
|
val uri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE)
|
|
@@ -224,7 +224,7 @@ object CallEngine {
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
|
|
227
|
+
fun stopRingtone() {
|
|
228
228
|
try { ringtone?.stop() } catch (_: Exception) {}
|
|
229
229
|
ringtone = null
|
|
230
230
|
}
|
|
@@ -63,7 +63,7 @@ class CallManagerModule(reactContext: ReactApplicationContext) :
|
|
|
63
63
|
|
|
64
64
|
// --- JSI-native audio/device/screen APIs ---
|
|
65
65
|
|
|
66
|
-
override fun getAudioDevices():
|
|
66
|
+
override fun getAudioDevices(): WritableArray {
|
|
67
67
|
val devices = CallEngine.getAudioDevices(reactApplicationContext)
|
|
68
68
|
val array = Arguments.createArray()
|
|
69
69
|
devices.forEach { array.pushString(it) }
|