Class CameraDevice

    • Constructor Detail

      • CameraDevice

        public CameraDevice​(@NonNull
                            android.content.Context context,
                            @NonNull
                            androidx.lifecycle.LifecycleOwner lifecycleOwner)
        Creates a camera object but does not start it.
        Parameters:
        context - an application context. For the activity can be passed like this: 'this'
        lifecycleOwner - activity or application life cycle. For the activity can be passed like this: 'MainActivity.this'