Subversion Repository Public Repository

litesoft

Diff Revisions 905 vs 906 for /trunk/mobileGWT/gwt-phonegap/src/main/java/com/googlecode/gwtphonegap/client/camera/Camera.java

Diff revisions: vs.
  @@ -1,38 +1,36 @@
1 1 /*
2 2 * Copyright 2010 Daniel Kurka
3 3 *
4 - * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 - * use this file except in compliance with the License. You may obtain a copy of
6 - * the License at
4 + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 + * in compliance with the License. You may obtain a copy of the License at
7 6 *
8 7 * http://www.apache.org/licenses/LICENSE-2.0
9 8 *
10 - * Unless required by applicable law or agreed to in writing, software
11 - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 - * License for the specific language governing permissions and limitations under
9 + * Unless required by applicable law or agreed to in writing, software distributed under the License
10 + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 + * or implied. See the License for the specific language governing permissions and limitations under
14 12 * the License.
15 13 */
16 14 package com.googlecode.gwtphonegap.client.camera;
17 15
18 16 public interface Camera {
19 17
20 - /**
21 - * Takes a photo and returns the image as a base64 encoded String.
22 - *
23 - * opens the device's default camera application so that the user to take a
24 - * photo. Once the photo is taken, the camera application closes and your
25 - * application is restored.
26 - *
27 - * The image is base64 encoded and returned as a String in the cameraSuccess
28 - * function. Since the data is a String, you can do whatever you want with
29 - * it, for example:
30 - *
31 - * Render the image in an <img> tag (see example below) Save the data
32 - * locally (LocalStorage, Lawnchair, etc) Post the data to a remote server
33 - *
34 - * @param options
35 - * @param callback
36 - */
37 - public void getPicture(PictureOptions options, PictureCallback callback);
18 + /**
19 + * Takes a photo and returns the image as a base64 encoded String.
20 + *
21 + * opens the device's default camera application so that the user to take a photo. Once the photo
22 + * is taken, the camera application closes and your application is restored.
23 + *
24 + * The image is base64 encoded and returned as a String in the cameraSuccess function. Since the
25 + * data is a String, you can do whatever you want with it, for example:
26 + *
27 + * Render the image in an <img> tag (see example below) Save the data locally (LocalStorage,
28 + * Lawnchair, etc) Post the data to a remote server
29 + *
30 + * @param options
31 + * @param callback
32 + */
33 + public void getPicture(PictureOptions options, PictureCallback callback);
34 +
35 + public void cleanUp(CameraCallback callback);
38 36 }