Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# Camera.PictureCallback

*** ** * ** ***

` public static interface Camera.PictureCallback `   
` `

|---|
| android.hardware.Camera.PictureCallback |

<br />

*** ** * ** ***

<br />

**This interface was deprecated in API level 21.**   

We recommend using the new `https://developer.android.com/reference/android/hardware/camera2/package-summary` API for new applications.

Callback interface used to supply image data from a photo capture.
**See also:**

- `https://developer.android.com/reference/android/hardware/Camera#takePicture(android.hardware.Camera.ShutterCallback,%20android.hardware.Camera.PictureCallback,%20android.hardware.Camera.PictureCallback,%20android.hardware.Camera.PictureCallback)`

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/hardware/Camera.PictureCallback#onPictureTaken(byte[],%20android.hardware.Camera)(byte[] data, https://developer.android.com/reference/android/hardware/Camera camera) ` Called when image data is available after a picture is taken. |

## Public methods

### onPictureTaken

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onPictureTaken (byte[] data, 
                Camera camera)
```

Called when image data is available after a picture is taken. The format of the data depends on the context of the callback and `https://developer.android.com/reference/android/hardware/Camera.Parameters` settings.

<br />

| Parameters ||
|---|---|
| `data` | `byte`: a byte array of the picture data <br /> |
| `camera` | `Camera`: the Camera service object <br /> |