com.googlecode.android_scripting.facade
Class CameraFacade

java.lang.Object
  extended by com.googlecode.android_scripting.jsonrpc.RpcReceiver
      extended by com.googlecode.android_scripting.facade.CameraFacade

public class CameraFacade
extends RpcReceiver

Access Camera functions.


Constructor Summary
CameraFacade(FacadeManager manager)
           
 
Method Summary
 Bundle cameraCapturePicture(java.lang.String targetPath, java.lang.Boolean useAutoFocus)
           
 void cameraInteractiveCapturePicture(java.lang.String targetPath)
           
 void shutdown()
          Invoked when the receiver is shut down.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CameraFacade

public CameraFacade(FacadeManager manager)
Method Detail

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)