You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/RNCamera.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,6 +305,15 @@ Function to be called when native code emit onCameraReady event, when camera is
305
305
306
306
Function to be called when native code emit onMountError event, when there is a problem mounting the camera.
307
307
308
+
#### `onStatusChange`
309
+
310
+
Function to be called when native code emits status changes in relation to authorization changes.
311
+
312
+
Event contains the following fields:
313
+
314
+
-`cameraStatus` - one of the [CameraStatus](#status) values
315
+
-`recordAudioPermissionStatus` - one of the [RecordAudioPermissionStatus](#recordAudioPermissionStatus) values
316
+
308
317
#### `Android``onPictureTaken`
309
318
310
319
Function to be called when native code emit onPictureTaken event, when camera has taken a picture.
@@ -512,7 +521,7 @@ Supported options:
512
521
513
522
-`maxFileSize` (int greater than 0). Specifies the maximum file size, in bytes, of the video to be recorded. For 1mb, for example, use 1\*1024\*1024. If nothing is specified, no size limit will be used.
514
523
515
-
-`mute` (any value). (_This value will automatically be set to true if the `captureAudio` has not been passed to the Camera component_) If this flag is given in the option with any value, the video to be recorded will be mute. If nothing is specified, video will NOT be muted.
524
+
-`mute` (any value). (_This value will automatically be set to true if the `captureAudio` has not been passed to the Camera component_) If this flag is given in the option with any value, the video to be recorded will be mute. If nothing is specified, video will NOT be muted.
516
525
**Note:** The recommended way of recording audio without sound passing captureAudio: false to the Camera component.
517
526
The `mute` parameter is likely to become deprecated in the near future.
0 commit comments