We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Map
MutableMap
1 parent 8e919c8 commit efae6ccCopy full SHA for efae6cc
package/android/src/main/java/com/mrousavy/camera/react/CameraDevicesManager.kt
@@ -104,11 +104,11 @@ class CameraDevicesManager(private val reactContext: ReactApplicationContext) :
104
eventEmitter.emit("CameraDevicesChanged", devices)
105
}
106
107
- override fun getConstants(): MutableMap<String, Any?> {
+ override fun getConstants(): Map<String, Any?> {
108
val devices = getDevicesJson()
109
val preferredDevice = if (devices.size() > 0) devices.getMap(0) else null
110
111
- return mutableMapOf(
+ return mapOf(
112
"availableCameraDevices" to devices,
113
"userPreferredCameraDevice" to preferredDevice?.toHashMap()
114
)
0 commit comments