|
|
@ -1189,10 +1189,8 @@ public class CameraView extends FrameLayout implements LifecycleObserver { |
|
|
|
* |
|
|
|
* |
|
|
|
* @param cameraListener a listener for events. |
|
|
|
* @param cameraListener a listener for events. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void addCameraListener(@Nullable CameraListener cameraListener) { |
|
|
|
public void addCameraListener(@NonNull CameraListener cameraListener) { |
|
|
|
if (cameraListener != null) { |
|
|
|
mListeners.add(cameraListener); |
|
|
|
mListeners.add(cameraListener); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1201,10 +1199,8 @@ public class CameraView extends FrameLayout implements LifecycleObserver { |
|
|
|
* |
|
|
|
* |
|
|
|
* @param cameraListener a listener for events. |
|
|
|
* @param cameraListener a listener for events. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void removeCameraListener(@Nullable CameraListener cameraListener) { |
|
|
|
public void removeCameraListener(@NonNull CameraListener cameraListener) { |
|
|
|
if (cameraListener != null) { |
|
|
|
mListeners.remove(cameraListener); |
|
|
|
mListeners.remove(cameraListener); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|