feat: Add onStarted
and onStopped
events (#2273)
* feat: Add `onStarted` and `onStopped` events * Implement `onStart` for Android * Update CameraSession.kt * Update CameraSessionDelegate.swift
This commit is contained in:
@@ -249,8 +249,10 @@ class CameraSession: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate, AVC
|
||||
// Start/Stop session
|
||||
if configuration.isActive {
|
||||
captureSession.startRunning()
|
||||
delegate?.onCameraStarted()
|
||||
} else {
|
||||
captureSession.stopRunning()
|
||||
delegate?.onCameraStopped()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user