public final class ZoomTransaction
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels an outstanding smooth zoom request.
|
void |
go()
Actually performs the zoom.
|
ZoomTransaction |
onChange(Camera.OnZoomChangeListener onChange)
Call this to specify an OnZoomChangeListener to be
notified of changes in the zoom level.
|
ZoomTransaction |
onComplete(java.lang.Runnable onComplete)
Call this to specify a Runnable to be executed when the
zoom operation is complete.
|
void |
onZoomChange(int zoomValue,
boolean stopped,
Camera camera) |
public ZoomTransaction onComplete(java.lang.Runnable onComplete)
onComplete
- a Runnablepublic ZoomTransaction onChange(Camera.OnZoomChangeListener onChange)
onChange
- the listener for zoom change eventspublic void go()
public void cancel()
public void onZoomChange(int zoomValue, boolean stopped, Camera camera)