Interface DISNotifyListener


public interface DISNotifyListener
DISNotifyListener defines an interface for receiving notifications of system events. This is an optional interface. If an application wishes to use the interface it should create and supply an instance of it to the DMSDetectorView.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCameraAvailable()is called when camera initialization is complete and the camera is accessible.
  • Method Details

    • onCameraAvailable

      void onCameraAvailable()
      onCameraAvailable()is called when camera initialization is complete and the camera is accessible. The primary reason for using this method is that some camera features cannot be queried until the camera is opened. For instance, the presence of a torch on the device (queried via DMSDetectorView.getIsTorchAvailable()) will always return false if called before the camera is open.