public void addCameraListener(CameraListener lis){
  if (listeners == null) {
    listeners=new ArrayList<>(5);
  }
  listeners.add(lis);
}

public void addCameraListener ( CameraListener lis ) { if ( listeners == null ) { listeners = new ArrayList < > ( 5 ) ; } listeners . add ( lis ) ; }
add a camera listener .
