Interface CameraConfigurationListener


public interface CameraConfigurationListener
CameraConfigurationListener defines an interface for handling camera configuration events. This is an optional interface. Use the CameraHelper CameraHelper.Builder() setConfigurationListener() method to register your listener with the CameraHelper instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    onConfigureCamera(int cameraId, Object parameters)
    This method will be called during camera initialization and allows a set of best-reading-performance camera parameters to be configured for this particular device and camera.
    android.graphics.Point
    onConfigureResolution(int cameraId)
    This method will be called during camera initialization and allows a set of best-reading-performance resolution to be configured for this particular device and camera.
  • Method Details

    • onConfigureCamera

      @NonNull Object onConfigureCamera(int cameraId, @NonNull Object parameters)
      This method will be called during camera initialization and allows a set of best-reading-performance camera parameters to be configured for this particular device and camera. The general implementation of this method is to call the static Manager.getRecommendedCameraParameters(int, Object) method within DMSDK.
      Parameters:
      cameraId - The ID of the camera being used. In most cases this value should be 0.
      parameters - The initial camera parameters.
      Returns:
      A modified set of camera parameters.
    • onConfigureResolution

      @NonNull android.graphics.Point onConfigureResolution(int cameraId)
      This method will be called during camera initialization and allows a set of best-reading-performance resolution to be configured for this particular device and camera. The general implementation of this method is to call the static Manager.getRecommendedResolution(int) method within DMSDK.
      Parameters:
      cameraId - The ID of the camera being used. In most cases this value should be 0.
      Returns:
      The recommended camera resolution expressed as Point object