com.googlecode.android_scripting.facade
Class CameraFacade
java.lang.Object
com.googlecode.android_scripting.jsonrpc.RpcReceiver
com.googlecode.android_scripting.facade.CameraFacade
public class CameraFacade
- extends RpcReceiver
Access Camera functions.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CameraFacade
public CameraFacade(FacadeManager manager)
cameraCapturePicture
@Rpc(description="Take a picture and save it to the specified path.",
returns="A map of Booleans autoFocus and takePicture where True indicates success.")
public Bundle cameraCapturePicture(@RpcParameter(name="targetPath")
java.lang.String targetPath,
@RpcParameter(name="useAutoFocus")@RpcDefault(value="true")
java.lang.Boolean useAutoFocus)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
shutdown
public void shutdown()
- Description copied from class:
RpcReceiver
- Invoked when the receiver is shut down.
- Specified by:
shutdown in class RpcReceiver
cameraInteractiveCapturePicture
@Rpc(description="Starts the image capture application to take a picture and saves it to the specified path.")
public void cameraInteractiveCapturePicture(@RpcParameter(name="targetPath")
java.lang.String targetPath)