Merge "Add camera new picture and new video broadcast intents."
This commit is contained in:
@@ -8905,6 +8905,8 @@ package android.hardware {
|
||||
method public final void takePicture(android.hardware.Camera.ShutterCallback, android.hardware.Camera.PictureCallback, android.hardware.Camera.PictureCallback);
|
||||
method public final void takePicture(android.hardware.Camera.ShutterCallback, android.hardware.Camera.PictureCallback, android.hardware.Camera.PictureCallback, android.hardware.Camera.PictureCallback);
|
||||
method public final void unlock();
|
||||
field public static final java.lang.String ACTION_NEW_PICTURE = "android.hardware.action.NEW_PICTURE";
|
||||
field public static final java.lang.String ACTION_NEW_VIDEO = "android.hardware.action.NEW_VIDEO";
|
||||
field public static final int CAMERA_ERROR_SERVER_DIED = 100; // 0x64
|
||||
field public static final int CAMERA_ERROR_UNKNOWN = 1; // 0x1
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package android.hardware;
|
||||
|
||||
import android.annotation.SdkConstant;
|
||||
import android.annotation.SdkConstant.SdkConstantType;
|
||||
import android.graphics.ImageFormat;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.SurfaceTexture;
|
||||
@@ -141,6 +143,22 @@ public class Camera {
|
||||
private boolean mOneShot;
|
||||
private boolean mWithBuffer;
|
||||
|
||||
/**
|
||||
* Broadcast Action: A new picture is taken by the camera, and the entry of
|
||||
* the picture has been added to the media store.
|
||||
* {@link android.content.Intent#getData} is URI of the picture.
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
|
||||
public static final String ACTION_NEW_PICTURE = "android.hardware.action.NEW_PICTURE";
|
||||
|
||||
/**
|
||||
* Broadcast Action: A new video is recorded by the camera, and the entry
|
||||
* of the video has been added to the media store.
|
||||
* {@link android.content.Intent#getData} is URI of the video.
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
|
||||
public static final String ACTION_NEW_VIDEO = "android.hardware.action.NEW_VIDEO";
|
||||
|
||||
/**
|
||||
* Returns the number of physical cameras available on this device.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user