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:
@@ -239,6 +239,14 @@ class CameraView(context: Context) :
|
||||
invokeOnInitialized()
|
||||
}
|
||||
|
||||
override fun onStarted() {
|
||||
invokeOnStarted()
|
||||
}
|
||||
|
||||
override fun onStopped() {
|
||||
invokeOnStopped()
|
||||
}
|
||||
|
||||
override fun onCodeScanned(codes: List<Barcode>, scannerFrame: CodeScannerFrame) {
|
||||
invokeOnCodeScanned(codes, scannerFrame)
|
||||
}
|
||||
|
Reference in New Issue
Block a user