public static interface CameraDetector.CameraSurfaceViewListener
Modifier and Type | Method and Description |
---|---|
void |
onSurfaceViewAspectRatioChanged(int newWidth,
int newHeight)
Notifies when the size of the
SurfaceView has been changed. |
void onSurfaceViewAspectRatioChanged(int newWidth, int newHeight)
SurfaceView
has been changed.
The SurfaceView is resized to fit as much of its parent container (such as a RelativeLayout
) as possible.
Therefore, it is best not to change the size of the parent container in response to this event.
Note that CameraDetector
should be left to handle the life-cycle of the provided SurfaceView
. Subscribing
to the SurfaceHolder.Callback
events can lead to unpredictable behavior.
This event is guaranteed to fire at least once after CameraDetector.start()
has been called.
This event will never fire if the provided SurfaceView was null;newWidth
- the new width, in pixels, of the SurfaceViewnewHeight
- the new height, in pixels, of the SurfaceViewCopyright © 2015. All rights reserved.