fun addCameraErrorListener(listener: (t: Throwable, errorLevel: ErrorLevel) -> Unit): CameraView
Add a new camera error listener. If no error listeners are added, then "critical" errors will be thrown to system exception handler (ie. hard crash) The only critical error thrown for now is for invalid aspect ratio.
listener
- lambda with t of type Throwable and errorLevel of type ErrorLevel as arguments
Return
instance of CameraView it is called on
fun addCameraErrorListener(listener: (t: Throwable, <ERROR CLASS>) -> Unit): CameraView
Add a new camera error listener. If no error listeners are added, then "critical" errors will be thrown to system exception handler (ie. hard crash) The only critical error thrown for now is for invalid aspect ratio.
listener
- lambda with t of type Throwable and errorLevel of type ErrorLevel as arguments
Return
instance of CameraView it is called on