Class CameraDevice

java.lang.Object
com.banuba.sdk.player.VerifyCloseable
com.banuba.sdk.input.CameraDevice
All Implemented Interfaces:
Closeable, AutoCloseable

public class CameraDevice extends VerifyCloseable
The CameraDevice class used to capture video stream, and photos. It uses the standard CameraX as a camera.
See Also:
  • Constructor Details

    • 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'
  • Method Details